[00:45:02] <sinclair-linux> i have a quick question
[00:45:20] <sinclair-linux> where is the most appropriate place to install a mongo database on linux?
[00:45:28] <sinclair-linux> as in what directory is the most common?
[00:45:35] <sinclair-linux> or, does it not matter?
[00:47:10] <rossdm> you can put it wherever you want, default installs usually go to /data/db
[00:48:22] <sinclair-linux> rossdm: as in, the root ?
[00:48:43] <sinclair-linux> rossdm: for example, i have a site running /var/www
[00:49:09] <sinclair-linux> so, i would have the /data directory next to the /var directory in the root right?
[14:21:32] <lacrymology> how do I do a nested-structure search? Like if my documents look like [{ foo: 'foo', bar: { x: 1, y: 2} }, {foo: 'baz', bar: { x:2, y: 2}}, ...], how do I look for the object that foo.bar.x == 1?
[14:23:28] <lacrymology> Baribal: sorry, it's even worse. bar is a list, and what I want is bar, not the whole document (but I can handle that afterwards, of course)
[14:23:33] <Baribal> coll.find({bar.x: 1}), as bar is not a nested doc in foo.
[17:48:55] <fabio> why mongodb sells the wonderful mapreduce in its doc
[17:49:12] <fabio> if it is better to do with functions in a relational database
[17:49:13] <richthegeek> I'm writing a system which runs as a daemon and which should init a process when a row is inserted/updated in a collection. The collection will have at most (and usually far fewer) 1000 rows. Is it more performant to poll the collection for new rows every N seconds, or to cap the collection and use a tailable cursor?
[18:15:23] <fabio> thats what i thoght , by sharding i would reduce the time
[21:16:28] <preinhei_> I'm having some trouble finding my data. Which is a pity.
[21:16:46] <preinhei_> I've got four mongo servers participating in a replica set
[21:17:14] <preinhei_> i'm doing work near one of the slaves, and not all the work I'm writing is available later
[21:17:35] <preinhei_> http://pastie.org/private/0famdfkurqfxpfqsy8kza (using the PHP driver)
[21:19:07] <preinhei_> I guess a key note would be, I'm writing three things under results.Chicago, http (the documented one there), trace (shows in results) and dig
[21:21:18] <preinhei_> I've got a copy of the application running on the same server as the primary, no problems there
[21:22:04] <preinhei_> setting write concern (either to 2, or majority) seems to have made things worse, not better.
[21:23:07] <kali> preinhei_: you're aware you need your php client to be able to talk to the primary ?