ump*_*sky 2 performance orm doctrine insert bulk
此代码(来源:http://www.doctrine-project.org/documentation/manual/1_0/hu/component-overview : connection : flushing-the-connection)
$conn = Doctrine_Manager::connection();
$user1 = new User();
$user1->username = 'Jack';
$user2 = new User();
$user2->username = 'jwage';
$conn->flush();
Run Code Online (Sandbox Code Playgroud)
导致执行2个插入查询.
有没有办法只用一个批量插入来做到这一点?
我认为学说2正在解决这个问题(http://www.doctrine-project.org/blog/doctrine2-batch-processing),但它仍处于测试阶段.
任何的想法?