PMXBOT Log file Viewer

Help | Karma | Search:

#mongodb logs for Tuesday the 21st of May, 2019

(Back to #mongodb overview) (Back to channel listing) (Animate logs)
[13:31:09] <Industrial> Hi.
[13:31:25] <Industrial> With $gte I can compare two numbers. Can I also compare two strings?
[13:32:49] <Industrial> Guess not.
[13:53:23] <Industrial> got it, nm
[15:08:24] <GothAlice> Welp. Things are getting curiouser and curiouser. The BSON package iterates the filter document dict passed to find_one/find directly. For some reason. Instead of iterating the .items() view.
[15:08:46] <GothAlice> https://github.com/marrow/mongo/commit/700d7a004194668af2b543c53596b08510da630f ← makes this explode most gloriously.
[15:24:35] <GothAlice> Oh, yeah, and thanks, PyMongo BSON, for using direct access of an actually private attribute for data storage. (Instead of bytes(oid), it accesses: oid.__id. Which, due to the double underscore, is actually stored as oid._ObjectId__id, making this the single ugliest/dirtiest/grossest bit of Python code I have written in two years:
[15:24:36] <GothAlice> https://github.com/marrow/mongo/blob/next/marrow/mongo/util/oid.py?ts=4#L296
[17:04:23] <zylo4747> When I use mongo at the shell and i specify host names using --host it seems to only allow me to enter 3 names. If I put more, it fails. Is this expected behavior? I don't remember having this issue and I can't find anything regarding this online.
[17:04:39] <zylo4747> I get an "invalid url" error when I specify more than 3
[17:08:13] <GothAlice> zylo4747: https://docs.mongodb.com/manual/reference/connection-string/#components — “Specify as many hosts as appropriate for your deployment topology…” would indicate that the error is not intended.
[17:17:18] <zylo4747> hmm
[17:19:07] <zylo4747> That's for the connection string format, I'm specifically using this in the mongo.exe shell. I wonder if they just behave differently https://docs.mongodb.com/manual/reference/program/mongo/#cmdoption-mongo-host
[17:32:06] <zylo4747> GothAlice I had one of the devs try this with the app and it doesn't seem to have the same problem using a mongodb:// url
[17:32:32] <zylo4747> this only seems to be affecting the mongo shell