郑达里
郑达里
I was thinking that it should implement the `_write` method of the TCP Duplex stream, and somehow mess it up by doing nothing every once in a while for some...
Hmm, I looked at the source code and all that net-sim does is add a fixed amount of latency, something that this module already does. What I was hinting at...
I think that this is expected behavior and nothing should be done by this library about it: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/URIError.
Ah yes, as you can see this was written before MongoDB 4. I'll look into implementing transactions. It does not use the aggregation pipeline. It seems to be useful for...
@ansarizafar multiple calls to `find` are not made unless used in conjunction with `include` option, that is why I mentioned it. Calling `find` once === one database roundtrip.
I'm not sure if the concern is warranted, I hope I'll try to explain it better. Fortune.js makes one roundtrip to the database (one call to `find`) per request, unless...
Transaction support has been added: https://github.com/fortunejs/fortune-mongodb/commit/2d059cd6796f2bc440550d890440f79604d9e3a0 Published as `1.3.0`. Please note that this is an opt-in feature, since by default, MongoDB does not run in replica set mode, which is...
I don't think you read what I wrote. Even with nested includes, the number of requests is O(1) since the nesting level is constant. You might be mistaken in thinking...
I think there is no real problem, please let me know if you have actually analyzed database queries and found that there were excessive requests being made. I will wait....
Do you understand that the version of MongoDB is not relevant to the topic at hand? Please specify what "tens of database requests" means. It isn't even worth the effort...