stas29a/doctrine

Doctrine 2 fork with performance improvements

v2.5.5 2016-09-10 18:51 UTC

README

This fork contains some performance optimizations. Currently implements:

  • Batch inserts for processing big amount of entities
  • Disabling internal events when you need

The main object you need is PerformanceConfiguration. Here is an example for demonstration:

//Getting performance configuration
$performanceConfiguration = $em->getPerformanceConfiguration();

//Disable internal events
$performanceConfiguration->setIsEventsSystemEnabled(false);

//Enable batch inserts
$performanceConfiguration->enableBatchInsert();

//Set how many entities will be inserted per one insert
$performanceConfiguration->setMaxPerInsert(500);

More resources: