Teaching Doctrine to be Lazy

Avatar of Kevin Bond Kevin Bond

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

Delivered in English
Room:
The SensioLabs room

Thursday, June 15, 2023 at 15:50 PM – 16:25 PM

Intermediate talk, some familiarity with the topic required.