[00:43:08] <algernon> create a capped collection, with max set to the number of documents you want, and size set to about the expected average size of documents, times max times 2-4 or so.
[00:43:58] <[Fudge]> thing is, I need to do this programatically and it'll rely on users setting it up
[00:44:19] <algernon> well, just set it to 8MB * max then or so :)
[00:45:36] <[Fudge]> algernon: thanks, I'll see how it goes :)
[08:51:53] <thewitcher> If i use mongo's inbuilt '$gte' operator on an integer against a database entry which is a floating point, and the result is returned as if i used '$gt' is this potentially because of the nature of floating point numbers?
[08:52:24] <thewitcher> Ive tested quite a few times and pretty sure that i dont understand somethign implicit about float datatypes here
[12:21:17] <fommil> Hi all – I need some help using the $first command in an aggregate. I want to use it to pick the first full result from the pipeline. The docs are sparse the examples seem to only use it as a way to filter by field
[12:33:52] <Sri19> (node.js related) I've used MongoJS in the past .. not sure if its the best choice for my next project .. which mongodb libraries do you recommend?
[12:45:00] <fommil> is there a nice way to use $first in a $group which preserves all the fields of the pipeline (i.e. without having to explicitly list all the fields)
[13:37:02] <db42> I have an document with a field "blah" which holds an array of ObjectID, how do i find in a colleciton all documents which in the field blah, do not have a specific objectID ?
[15:26:10] <Faerelis> maybe some can answer me a question. i made little diary prog with outsourced mongodb code and in the __init__ methode i connect everything, but how i can access correctly to the collecion? i write funtions und everytime i get this message: AttributeError: 'str' object has no attribute 'collection'.
[15:27:03] <Faerelis> (sorry for my bad english) how can i fix it, anybody a idear or a link?
[15:35:24] <db42> Faerelis, try checking the mongo shell ?
[16:14:05] <Faerelis> o damn, it works xD xD after 2 days
[16:21:28] <mitsuhiko> we put a bigger box into one of our replica sets as the primary since the majority of traffic hits it
[16:21:39] <mitsuhiko> we now have the curious case that everything has gotten slower on agerage
[16:22:00] <mitsuhiko> any hints on what might be causing this?
[16:22:07] <mitsuhiko> (it has not recovered over 10 hours)
[18:11:07] <Tixz> I have two fields in my collection that contain pretty much unique keys, however I do a lot of selection based on what values the arrays contain. Would a multi-key index be appropriate or unlikely to help?
[18:13:16] <Tixz> Sorry for the inconvenience, just checked with explain (didn't think of that) and it did help dramatically :)
[20:00:19] <eka> mitsuhiko: since you have a lot of traffic, did you think about sharding?