When working with large datasets that are complex to get or rarely change, we can use caching to reduce the load on our database. For this, we will use the Cache class. In the examples, we will try to optimize the database call that takes 10 000 records from it.
Source: Read MoreÂ