[05:02:36] <mianos> raw activity is two lists deep btw. That query works fine but I want to get the original match id and push to a list to save the aggregated list to a collection
[05:04:25] <sellout> mianos: $first is going to throw away _ids, though – if you want them all, then $push, or maybe sort them in some way prior to the $group to get the _id you want into $first position.
[05:07:07] <mianos> I might have to load it and store it in py I think. Too much for my mongo skills yet.
[05:14:11] <mianos> on this page http://docs.mongodb.org/manual/reference/operator/aggregation/push/#grp._S_push
[05:14:34] <mianos> it says it uses field, the following operation uses the$addToSet accumulator
[05:17:00] <sellout> That seems to be a typo – it uses $push – and $push is the right thing there, because you don’t want to collapse two entries just because they sold the same quantity of the same item.
[05:18:08] <sellout> … especially since it’s on the page about $push
[05:18:34] <sellout> Here it is in the right context: http://docs.mongodb.org/manual/reference/operator/aggregation/addToSet/#example
[05:21:05] <poolside> hello! anyone have any experince with objectrocket? i’m having the n00biest issue connecting to my instance via node.js and the mongodb npm.. trying to follow this directions (http://docs.objectrocket.com/native_drivers.html) but am a bit confused as to where the dbconnctstring goes
[05:24:39] <sellout> mianos: Well, the _id is what you group on, but if you project it to actid like you do above, you can $push that, then you’ll have an array of all the ids that are in that group.
[06:02:08] <mianos> still trying, maybe if I run the data into another stage I can pivot it
[06:02:13] <mianos> now I have {u'_id': {u'hour': 19, u'min': 49}, u'actid': ObjectId('54015a3738bc1808dc45b7fb'), u'avgspeed': 24.20298677683631}]}
[23:58:25] <ag4ve> i want to put some dns query info into a db right now, but i generally want to have easy access to nosql db from a shell for general info analysis