Skip to content

stas29a/doctrine2

This branch is 14 commits ahead of, 4369 commits behind doctrine/orm:3.3.x.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

author
Stas
Dec 6, 2016
2811790 · Dec 6, 2016
Mar 21, 2016
Nov 26, 2016
Dec 5, 2016
Nov 27, 2016
Dec 16, 2013
Jan 19, 2013
Mar 7, 2013
Feb 15, 2013
Dec 29, 2015
Sep 10, 2016
Feb 17, 2016
Sep 29, 2015
Dec 5, 2016
Feb 21, 2014
Sep 8, 2016
Sep 7, 2013
Aug 27, 2011
Sep 7, 2013
Dec 6, 2016
May 22, 2016
Mar 11, 2013
Mar 11, 2013

Repository files navigation

Doctrine 2 fork with optimization

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:

About

Doctrine 2 with high performance optimization

Resources

License

Security policy

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 100.0%