4 ms·
To explain the parent comment, in a write heavy application, you would probably want to turn off transactions in Mongo in return for the performance gain. What
by bgilroy26 15y ago
To explain the parent comment, in a write heavy application, you would probably want to turn off transactions in Mongo in return for the performance gain.
What the comment you're responding to is saying is that when you aren't making many writes, you can afford to switch transactions on and have Mongo lock the whole database because the odds of having a read come in at the same moment are much lower than if you were making a write every second.
- runako 15y agoAhh, thanks for the explanation. This clears up something I didn't know about Mongo (next to nothing other than that the other commenters all seemed to indicate that it should not be used for writes). Much more informative than a downvote.