PMXBOT Log file Viewer

Help | Karma | Search:

#mongodb logs for Thursday the 21st of May, 2020

(Back to #mongodb overview) (Back to channel listing) (Animate logs)
[09:15:22] <the_drow[m]> Hi
[09:15:32] <the_drow[m]> I have a question about the new Rust driver
[09:15:45] <the_drow[m]> Are the connections automatically pooled?
[09:15:56] <the_drow[m]> How can I create a connection pool if not
[09:24:07] <kali> the_drow[m]: https://docs.rs/mongodb/0.10.0/mongodb/options/struct.ClientOptions.html
[09:24:16] <kali> the_drow[m]: there is a min_pool_size and a max_pool_size
[09:24:19] <the_drow[m]> thanks
[09:30:48] <kali> the_drow[m]: also, a feature complete mongodb client is actually a complicated beast, as it has to deal with replica set or sharding, maintaining its image of the topology, etc. so i think all "official" mongodb clients i have seen behave as shareable singletons from their API
[09:31:20] <kali> the_drow[m]: in other words, unless you have identified a very specific problem, you should not worry too much about connection pooling :)
[09:32:48] <kali> and a disclaimer too, i have never used the rust driver myself :)
[09:33:27] <kali> did a lot of mongodb, a lot of rust, though
[15:16:35] <lacrymology> is it possible to get either the original value or the result from an update? the context is: I've got concurrent processes trying to decrease an inventory value, I need that update never to go <0, I need to decrease as much as possible, and I need to know how many I actually decreased