In migrating code from using the insert command to using execBulkWrite (via PHP library) and I am seeing weird behaviour with w=0In short, unacknowledged writes are much, much slower than acknowledged ones.For comparison, 14k small-ish documents insert in ~1.5s with w=1 and w=majority, but over two minutes with w=0. The more documents, the greater the disparity.
I see this with both mmapv1 and WiredTiger on both 1.4.4 and 1.5.3 of the driver under MongoDB 3.4
This issue seems to be fixed by upgrading to MongoDB 3.6
I've got a test script I used for my benchmarks if you want it though.
I've got a test script I used for my benchmarks if you want it though.
--
You received this message because you are subscribed to the Google Groups "mongodb-user"
group.
For other MongoDB technical support options, see: https://docs.mongodb.com/manual/support/
---
You received this message because you are subscribed to the Google Groups "mongodb-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mongodb-user...@googlegroups.com.
To post to this group, send email to mongod...@googlegroups.com.
Visit this group at https://groups.google.com/group/mongodb-user.
To view this discussion on the web visit https://groups.google.com/d/msgid/mongodb-user/95c13542-7ca0-4866-96e9-32cf2f39f44a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.