[02:50:53] <ferai> does anyone know why using .sort({"$natural": -1}) would fail to return any documents, but .sort({"$natural": 1}) would return all documents?
[03:10:06] <bootstrapper> is there a way to filter a collection.aggregate ( {$group...
[03:44:29] <frozenlock> Hello gentlemen, I'm trying to add indexes, but can't seem to get mongo to use them... is there a minimum number of documents to get before the 'cursor' switches to BTREE?
[04:19:19] <zarac> Reading the documentation for the node.js driver; ( http://mongodb.github.com/node-mongodb-native/api-generated/collection.html#find ) it's stated that if i give find(..) a callback, the second parameter will contain the result. What kind of an object is this?
[04:20:39] <zarac> It looks very similar to what gets returned (a cursor). I'd just like to get an array (without having to use the toArray method like the examples do).
[04:32:52] <zarac> Hmm.. it seems the documentation inconsistent with the driver. Anyone else got an opinion on this?
[04:34:08] <zarac> E.g. it says Db.collection.find(..) returns null. It clearly doesn't.
[04:49:14] <LuckyBurger> hmm. After executing a loop of db.collection.save(), how do I tell node that all db ops are done and to disconnect?
[06:24:34] <shmoon> i have a users collection, i want to generate small unique ids for each (they dont have usernames, so ...). my initial thought is to implement auto increment ids, how do i go about doing that, and is that sane?
[07:37:19] <wereHamster> shmoon: why don't you use objectids?
[10:23:08] <Nodex> Sim city on the Snes was amazing
[10:23:15] <Nodex> I used to play that all the time
[10:23:53] <remonvv> It's a very good game I think. It's just...it's EA
[10:24:13] <remonvv> You have to be permanently online to play, you can't log in about 60% of the time because they can't even get a scalable auth server right.
[10:24:19] <remonvv> And it's super expensive to get all content.
[10:32:29] <remonvv> Ignoring the fact that just making great shit and getting more consumers is as effective, if not more so from a brand reputation point of view
[10:32:59] <remonvv> Anyway, this is sideline commenting, I'm sure there are a lot of factors involved.
[10:33:13] <remonvv> But in this case there are more succesful altneratives so it's just....weird.
[12:53:18] <rickibalboa> Would there be a way to keep an array inside a document at a fixed size, ie $pop'ing when an element is $push'ed and the array is of a certain size without any application logic, just in queries?
[12:57:37] <Nodex> first to try the pop second to push
[14:33:42] <richwol> Does anyone know if it's possible to use the aggregation framework to perform a group on a subdocument (not grouping documents together)
[14:38:58] <fishfish> hi everyone! does anyone know where does mongo store its log files by default while in verbose mode?
[14:49:55] <alex88> hello guys, i'm new to mongodb, actually I've got how to find with a simple filter, suppose that I've an element like { metrics: [["key", 123],[...]] }
[14:50:01] <alex88> how can I get a list of "key" values?
[14:51:10] <wereHamster> get the metrics array, extract the keys
[14:51:29] <wereHamster> like doc.metrics.map(function(x){ return x[0] });
[14:52:39] <alex88> wereHamster: ok thank you very much for the tip ;)
[14:55:08] <alex88> also, is there that let me easily let manage the db contents?
[16:09:28] <jiffe98> what is the best way to resolve config servers differing?
[16:18:38] <nonent> i've been using the $inc operator to do realtime statistics for quite a while with mongo. we're pushing a lot of io, and i'm curious if a) every individual $inc gets written to journal, and likewise if each $inc has to be propagated individually over oplog replication.
[16:20:07] <nonent> i'm thinking about locally caching the stats in app-space instead of inc'ing each individually, and wondering if it's worth the effort (and loss of true realtime), or if the way mongo works at a deep level means i won't actually see efficiency gained
[16:36:33] <jiffe98> I removed the content on one of the config servers it was complaining about and restarted it and it rebuilt but I'm still getting complaints that it differs
[16:42:23] <kali> jiffe98: config server do not rebuild, you need to sync it yourself
[16:44:03] <lethjakman> hey, does anyone have a good resource on learning how to query and insert mongo?
[17:29:35] <JakePee> what are the differences between using a boolean vs an integer in relation to indexes and querying
[17:38:58] <bmcgee> Derick: I've elaborated a bit on my problem in the gist: https://gist.github.com/brianmcgee/5118104 taking into account your suggestion. Am i using $first correctly?
[17:41:00] <bmcgee> Derick: don't think i'm using first correctly, i don't want to pick out values, I want to grab the first entry for each grouping
[19:08:43] <bmcgee> when grouping is it possible to specify the first instance of the grouping for each _id
[19:09:05] <bmcgee> or perhaps filter it after the grouping has occurred
[19:11:28] <bmcgee> i've looked at first but i don't want to extract the first value of a field, i want to extract the first document for the grouping
[20:55:30] <templaedhel> Hello, I have a collection with documents that looks like this https://gist.github.com/anonymous/16e94e3cad3c0c111ace and I want to do a query to find all the documents that "cover" a point. Aka a point exists within the bounds. What would the best practice be for something like that?