PMXBOT Log file Viewer

Help | Karma | Search:

#mongodb logs for Saturday the 18th of April, 2020

(Back to #mongodb overview) (Back to channel listing) (Animate logs)
[01:06:33] <troulouliou_div2> hi is it a good pattern to maintain a separate atomic ID on each insertion into a log collection ?
[01:06:42] <troulouliou_div2> or reusing the _id default one is better ?
[10:31:29] <asdfgh> hello everybody
[10:31:44] <asdfgh> is there a way to aggregate documents by running a comulative sum on a specific field?
[10:32:13] <asdfgh> i have documents like {_id:1, group_id:1, amount: 10} {_id:2, group_id:1, amount: 12} etc
[10:32:30] <asdfgh> i would like to group_by "group_id" field and adding a comulative sum on documents
[10:32:34] <asdfgh> is that possible somehow?
[13:56:23] <w6equj5> Hi all, is there a way to look for a document in ANY MongoDB collection? Say I have a DB with two collections ('user', and 'item') and before creating a new user I want to make sure that no other user OR item has the same name. Do I have to make a user.findOne() AND a item.findOne() call? Or is there a syntax that allows me to findOne on both collections?
[19:17:09] <johndoe231> Can I replace insertion of some array of data using insertMany() or bulkwrite, with an iterator that inserts each element without any significant performance penalty?
[20:02:16] <Intelo> Hi
[20:02:20] <Intelo> any help on Process: 1112 ExecStart=/usr/bin/mongod --config /etc/mongod.conf (code=exited, status=1/FAILURE)