The Worst Best Idea: Doing Batch Processing with Doctrine
summary
Examines using the Doctrine ORM for batch processing in PHP, discussing why combining Doctrine with large-scale batch jobs can become problematic. Covers practical issues (memory, performance, entity management) and strategies to handle or mitigate them when processing many records with Doctrine.
AI-written summary · about
chapters (14)
- 0:00Introduction
- 3:02Demo setup
- 5:09Batch import issues
- 8:00Transaction and batch size
- 10:11Identity map policy
- 15:27Memory leaks in batch
- 17:36Debugging with PHPMemInfo
- 22:45Clearing UnitOfWork
- 25:16DQL memory overhead
- 27:03Exporting datasets
- 28:52Efficient hydration
- 31:19Cursor vs search after
- 33:29Key takeaways
- 35:18Q&A
