[01:56:31] <Absolome> I want to aggregate my data in a specific way, but I’m pretty new to mongo, can anyone help out? http://hastebin.com/erokuvofaf.js
[02:43:07] <MacWinne_> is there a simple way to see number of queries against a specific collection?
[02:43:35] <MacWinne_> i've removed references to a collection in my code.. just want to make sure there arent any errant processes that I missed that need it
[02:52:25] <csj> MacWinne_, https://docs.mongodb.com/manual/reference/method/db.currentOp/ , here only mentioned about specific database
[02:54:23] <csj> Hi, My colleague complained about counting a sharded collection, we tried 3 ways to count a query result: https://gist.github.com/changsijay/90261d4d4afb1c7bbf8a25efdef6db49
[02:54:53] <csj> use count() and aggregate(). but which one is correct?
[03:09:13] <csj> he said that the correct one is $addToSet but very slow if the documents more than 1 billions
[07:30:33] <GothAlice> This has been a productive night.
[07:31:41] <GothAlice> https://github.com/amcgregor/WebCore-Tutorial/blob/wiki/web/app/wiki/root.py?ts=4 < have a fully functional REST interface example for managing wiki article pages in less than 100 SLoC. (There are a number of ways I can make this more compact, and yes, I'm ignoring upserts for now. ;) Tomorrow.
[07:32:56] <GothAlice> Also, interestingly, there's very little in there (other than __main__.py) that is framework-specific. ¬_¬
[10:54:20] <SimpleName> why explayin() not return the nscanned and “millis"
[10:57:20] <SimpleName> ok, need pass executionStats
[14:23:51] <ankurk> I am curious is there difference between running a javascript file on mongodb (eg, ‘mongo localhost:27017/mydb queue_clicks_for_archive.js’) and executing the command straight in the mongodb for deleting old data?
[14:43:45] <BigEntropy> Anyone have a lot of experience with casbah? I'm having trouble dealing with a list of objects, think it might be a bug. See pastbin below ...
[14:46:56] <Naeblis> I have a deeply nested array as part of my document like so: [ { foo: Id, bar: Id }, { .. }, { ... } ]. I want to filter results and return the format so that I have all the documents matching a specific foo Id, and then group them by month (each document has a date). I've figured out the grouping part but having trouble with extracting only the desired foo-bar combination from my result
[15:30:43] <Naeblis> Can you combine $push with $or ? I have to put items from 2 different fields in a single accumulator
[15:31:27] <Naeblis> I tried to do a $or: [ $push: ..., $push: ...] but that just accumulated boolean true in the array
[15:32:22] <cheeser> what behavior are you expecting from that construct?
[15:35:14] <Naeblis> when one field is undefined, it should look into the other field and push that into the accumulator. So for example: "scores": { $or: [ $push: "doc.score_single", $push: "doc.score_mcq" ] } should give me the combined scores of all the single and mcq scores.
[15:37:57] <Naeblis> perhaps $cond will work here...
[15:50:48] <ohmyfromage> We have a command line application that takes command line parameters and computes some results that are stored in mongodb. does it make sense to store those input parameters with the results in mongodb or should the input parameters be stored in a different collection than the results?
[15:51:11] <StephenLynx> how large is the command?
[15:51:21] <StephenLynx> how large are the results?
[15:52:51] <ohmyfromage> StephenLynx: the command itself can be reduced to about 15 attributes
[15:53:24] <StephenLynx> I'd expect it to be a string.
[15:53:24] <ohmyfromage> StephenLynx: much smaller than the results
[16:34:18] <richardsmd> ive got a mongodb instance running via the ubuntu repo at rep.mongodb.org
[16:34:19] <richardsmd> it periodically crashes and i dont see anything in the error logs. i have wiredTiger.engineConfig.cacheSizeGB limited but otherwise am using a stock mongod.conf. Can anyone suggest other settings that will either provide additional log information OR possibly eliminiate the crashes?