Workshop 2
summary
Shows how CakePHP handles bulk import of a million users and two million file rows, comparing approaches and timings: chunking with lazy Collections and saveMany works up to ~10k but slows due to callbacks and memory; bypassing the ORM with Connection->newQuery()->insert plus the Table type map inserts orders of magnitude faster; uses PostgreSQL JSON operators, subselects to populate normalized tag and ON CONFLICT DO NOTHING upsert to avoid duplicates.
AI-written summary · about
