PMXBOT Log file Viewer

Help | Karma | Search:

#mongodb logs for Thursday the 28th of November, 2019

(Back to #mongodb overview) (Back to channel listing) (Animate logs)
[14:22:09] <GothAlice> People really do too often get stuck in XY problem solving.
[14:23:10] <zelest> XY problem solving?
[14:23:24] <GothAlice> Action: clear an array. Implementation: re-assignment of an empty array. Implementation: deletion of indexed entries. Implementation: deletion by per-element $elemMatch criteria. zelest: xyproblem.info
[14:23:55] <zelest> You lost me :P
[14:23:56] <GothAlice> There's about half a dozen approaches to "clearing an array", all of which are functional and effective.
[14:24:03] <zelest> Ah
[14:24:10] <GothAlice> None of which are in any way specific to Compass.
[14:25:28] <GothAlice> ^ being the kicker / head-scratcher, for me. People always asking about overly-specific solutions.
[14:26:08] <zelest> Speaking of asking.. Do you happen to know how roles/users are handled in a replicaset?
[14:26:20] <zelest> Do I need to add the roles/users on every replica member?
[14:26:25] <zelest> Or does that data replicate as well?
[14:27:14] <GothAlice> Beyond straight replication as users are just data like any other, AFIK they aren't, in any way, specially handled. (Intra-server requires a pre-shared encryption key, but that's unrelated to roles themselves.)
[14:31:03] <GothAlice> MongoDB rather strongly tries to "eat its own dogfood" API, protocol, and packetization-wise. I.e. the wire protocol is the RPC protocol is BSON is the data format. "Users" are just data, in that sense.
[14:32:14] <GothAlice> As such, that data can be technically organized in a variety of ways. --authenticationDatabase lets you point out where it should be checking your credentials against, for example, permitting split or pooled user collections as desired.
[22:57:57] <PhoenixFlames> Hiya! Pardon the interruption, but I always like to ask more experienced users first before I spend too much time educating myself on the wrong thing. Is PyMongo the standard way of interfacing with mongodb from python?