PMXBOT Log file Viewer

Help | Karma | Search:

#mongodb logs for Sunday the 29th of November, 2020

(Back to #mongodb overview) (Back to channel listing) (Animate logs)
[13:43:38] <irthewinner> guys, how can I update a query matching "xnames" but will return me the detailed list of affected rows? in mongoose
[13:44:29] <irthewinner> I tried with MYSCHEMA.updateMany({ group: request.group1 }, { group: request.group2 }, function(err,result){}
[13:44:43] <irthewinner> but this will not give me the detailed results of each affected rows
[16:48:18] <d4rkp1r4t3> might be able to utilize change stream - https://docs.mongodb.com/manual/changeStreams/
[17:05:42] <irthewinner> thanks mate :) I will check this link later, gotta go now
[17:33:33] <lootic> Hi! Ive been trying to improve the performance of my application. To do this I hoped I could use aggregation pipes. However the best I could come up with was the following:
[17:33:40] <lootic> Uploaded file: https://uploads.kiwiirc.com/files/d4bf66ebbad96f6668aed43fb2573fa9/pasted.txt
[17:34:09] <lootic> This doesnt perform good enough, but I think it shows what I want to achieve
[17:34:24] <lootic> Is there some way to construct my query so it runs faster on mongo?