Doctrine object managers are greedy: when you query for a set of objects, they love to load everything, all at once. Thatโs normally great - but what if youโre working with large data sets, where you might load 10's of thousands of objects?
In this talk, weโll teach Doctrine how to be lazy by demonstrating how to efficiently query and work with large data sets. Weโll cover:
- Lazy queries
- Lazy relationships
- Profiling and reducing object "hydrations"
- Efficient batch processing
- An alternate, โlazy-by-defaultโ repository pattern