doctrine / mongodb-odm

The Official PHP MongoDB ORM/ODM
https://www.doctrine-project.org/projects/doctrine-mongodb-odm/en/latest/
MIT License
1.09k stars 504 forks source link

Utilize bulk writes when persisting document changes #1083

Open sirian opened 9 years ago

sirian commented 9 years ago

Is there any plans to use MongoWriteBatch classes for updates/inserts? http://php.net/manual/ru/mongo.batch.php

It would be awesome


Edit from @jmikola: This issue was originally opened when ODM was using the legacy driver. The equivalent request for ODM 2.x will be to use MongoDB\Driver\BulkWrite.

jmikola commented 9 years ago

@sirian: I have certainly thought about this. At this point, it may make more sense to just wait until we can port ODM over to the next-gen driver/extension, which also has a BulkWrite API.

stale[bot] commented 5 years ago

This issue has been automatically marked as stale because it has not had any recent activity. It will be closed in a week if no further activity occurs. Thank you for your contributions.

jmikola commented 5 years ago

@malarzm: While 2.0 is using ext-mongodb, I don't think it's taking advantage of bulk writes for flush operations. Are you aware of any ticket for that? If not, perhaps we can repurpose this.

malarzm commented 5 years ago

@jmikola repurposing this ticket is a good idea 👍