Quantcast
Viewing latest article 1
Browse Latest Browse All 3

Doctrine Bulk Inserts

Good tip on improving doctrine performance on bulk inserts:

$col = new Doctrine_Collection('Model');
$cold->add($record1);
$cold->add($record2);
$cold->add($record3);
$cold->add($recordN);
$col->save();

This massively decreases running time on iterative inserts.


Viewing latest article 1
Browse Latest Browse All 3

Trending Articles