[01:12:36] <dman777_alter> does mongodb make all of it's collections plural?
[03:06:02] <BadHorsie> dman777_alter: I think the one that did it (in my experience was Mongoose if you don't explicitly name your collection... Unless you mean something else.
[03:37:13] <dman777_alter> BadHorsie: that makes sense, thanks
[06:56:10] <elm> Is it possible to write to a secondary only?
[07:07:44] <elm> what is the default in mongodb: last write wins?
[07:07:56] <elm> how to specify the behaviour for conflicting writes?
[07:08:11] <elm> I can find it nowhere in the docs.
[07:28:50] <joannac> elm: um, no you can't write to a secondary only
[07:29:08] <joannac> elm: yes, if you have 2 writes coming in, last write wins
[07:29:16] <joannac> what do you mean by "conflicting writes"?
[07:37:27] <elm> one write which has seen state a replacing by b and another write which has seen state a replacing by c
[07:37:53] <elm> so a->b or a->c; what will be the result?
[07:38:40] <elm> usually a write carries the timestamp of the state it is based upon as well as a timestamp on when it was issued.
[07:39:08] <elm> there are multiple strategies to resolve such a conflicting write:
[07:47:49] <joannac> if you are going to do something like db.foo.update({a:1}, {$set: {a: 2}}), I believe that should not be able to happen
[07:48:45] <joannac> if you are going to do something like mydocument = db.foo.find({a:1}); [fiddle with it], db.foo.save(mydocument), then you need to handle it yourself
[07:48:59] <elm> it can happen on a db.foo.update({_id:...}, {$set: {a: 2}}),
[16:46:28] <Ravenheart> well a ravaging monkey wouldn't be very reasuring :)
[17:35:37] <fschuindt> Mongoid 3.1.6 is compatible with which version of Rails?
[18:10:57] <nexusIL> I'm looking for a way to make a mapreduce(query) which 'updates' and aggragate the keys and updates/removes on the projection of the query (and not the rest) on the same collection I was querying. The other option is to run MR on all the collection and I think It's inefficent.
[19:19:16] <ztroy> hi, any one can help me with the C driver ?
[19:20:09] <ztroy> it compile with mongoc.h and bson.h
[19:20:26] <ztroy> but when i want to read bson with bson_iterator
[19:20:36] <ztroy> i've the following error "unknown type name ‘bson_iterator’"
[19:21:02] <ztroy> (compiled with -I/usr/include/libmongoc-1.0 -I/usr/include/libbson-1.0 -lrt -lmongoc-1.0 -lbson-1.0)
[19:41:19] <zerofaith> Hey guys, is there anyway I can get mongodb to be relational (using mongoose/nodejs)
[19:42:08] <stephenmac7> Hello, I have an application which uses mongodb with gridfs and would like to know how I can split only the gridfs files over two servers and serve those files from both those servers.
[21:44:02] <Raynes> I have a collection named "help", and I'm trying to figure out how on earth I can reference this collection in the mongo shell. db.help doesn't work because help is a function in db. Any ideas? :(
[23:12:22] <shoshy> hey, i have a collection with objects that each has "parent_ids" and "children_ids" string array, filled with _id of the object themselves (building hierarchy). I'd like to query: "all the objects that their parent_ids's size is 0 or the ones that their parent_ids array has none of the parent_ids (we found before)" can i do this in a singe aggregate?
[23:13:38] <shoshy> (meaning : (a)bring back only the roots (b) only the leafs that has no parents/ their parents aren't from (a) )