PMXBOT Log file Viewer

Help | Karma | Search:

#mongodb logs for Tuesday the 19th of January, 2021

(Back to #mongodb overview) (Back to channel listing) (Animate logs)
[06:39:12] <antiPoP> Hi, is possible to use _id as date in a find query?
[10:37:55] <Joaolvcm[m]> I have 2 collections(messages and actions), where both the have the field "date"(date) and "user"(objectID), and I want a count of all unique users for a timeframe on both... For now I'm doing 1 request for each collection grouping by date and getting all users ids using $addToSet, and then joining both sets in JS and counting the uniques...
[10:37:56] <Joaolvcm[m]> But is there any way to do a both collections at once, so I can i just use $addToSet and then project the $size of it instead?
[19:12:24] <macwinner> Hi, is it possible to enable authentication in MongoDB without requiring it? I want to enable in my production sharded cluster and then incrementally enable it in my nodejs apps.. then once all the app servers have it enabled, then I want to flip on requiring authentication
[19:50:06] <chovy> can someone explain why this query takes so long? http://sprunge.us/kKkbFv