[00:49:54] <crudson> fg3: to update a specific matched item in an array use the http://www.mongodb.org/display/DOCS/Updating#Updating-The%24positionaloperator
[00:50:36] <crudson> fg3: although I am not sure you can use it in an array nested within an array, that would be something to experiment
[00:51:31] <fg3> the $ is the position in the array but when there is more than one array...
[00:52:28] <fg3> I lost the stack-exchange page where they chat about this -- I'm wondering if I have to change my structure
[00:54:43] <Guest55811> whats the cookie cutter use case example to choose mongodb over like mysql or postgresql
[01:00:46] <crudson> fg3: yeah, either fetch, change, save, or do in a very small db.eval() - both of course should be considered v carefully depending on the mutability/load of your db. Otherwise document restructure should be considered to make querying and updating easy, fast and atomic.
[01:01:05] <crudson> fg3: search the JIRA for nested positionals, I bet there is a case for it.
[08:20:17] <samurai2> what's actually sh.setBalancerState(false) or disable the balancer do actually? thanks :)
[08:28:18] <gigo1980> hi, i get an timeout in my mongo cluster some times, what can be the reasons ? i dont compact or repair the collections during this time
[08:33:36] <Axsuul> Not sure if I recall correctly, but was mongodb's global lock addressed recently?
[08:34:06] <kali> Axsuul: since 2.2 the write lock is database per database
[08:34:15] <kali> Axsuul: but the js interpreter lock stays as before
[08:38:59] <Axsuul> kali: thanks, how do you guys get around heavy read/write applications involving mongo?
[08:42:29] <Gargoyle> Axsuul: Write to master, read from slaves
[09:24:39] <Vile> Hi guys. is it possible to return multiple attributes from map/reduce?
[09:26:04] <Vile> i.e. not { _id, value } but http://pastebin.com/SxVySJNQ
[09:30:09] <Albeneth> Hi. How do i do this (http://pastebin.com/R5RXXVZ3) in mongodb (with the same collections and fields names) ?
[09:40:20] <Gizmo_x> anyone have expirience with doctrinemongoODM reference query http://pastie.org/4678732 - self reference many to many
[09:41:20] <Gargoyle> Albeneth: Mongo doesn't have the concept of JOINs and for GROUP BY, you'll be wanting to checkout the new aggregation stuff in 2.2.
[09:54:42] <kali> Vile: not efficiently. you can do it with application code, or by server side javascript (avoid that in prod)
[09:55:18] <Gargoyle> Vile: You mean update({someProp: 'foo'}, {$set: {someProp: 'bar'}}, false, true) type of thing. Don't think that's allowed.
[09:55:28] <Vile> basically i have a problem. i have large database with field format as http://pastebin.com/SxVySJNQ and I need to update _id.t fields
[09:55:56] <kali> Vile: I don't think you can change _id
[09:56:19] <Vile> kali: why not? same field as any other
[09:56:59] <Vile> ah, i see. it would not allow it
[09:57:17] <kali> The _id field is immutable. If you try to change its value on an update you will get a "Mod on _id not allowed" error from getLastError.
[09:57:18] <Vile> can i do find() into collection?
[10:01:00] <Gargoyle> Vile: Not sure what you're asking!
[10:02:26] <Vile> Gargoyle: basically, i need to take huge collection of records as in the paste and modify _id.t field
[10:02:55] <Vile> I can afford to copy collection once into separate collection
[10:03:43] <Gargoyle> Vile: You'll have to re-insert the while doc and delete the old ones. And have a think about how you have come to need to change your _id's !
[10:04:13] <stevie-bash> Hello, I want to run logrotate on the router, since kill -USR1 has a deadlock bug.
[10:34:21] <jwilliams> for insert with continuous on error, is it required to have driver also support it? Or it would be default on at server side regardless of driver specifying "continuous on error" or not?
[10:50:18] <Vile> Guess I'll write a function that does find() and then iterates over cursor doing inserts into other collection
[13:27:56] <Vile> how can i check progress for the command like db.eval("function () { db.histories.find().forEach( function(v) { v._id.t = new Date( v._id.t.getTime() - 28800000 ); db.histories2.insert( v ); })}"); ?
[13:28:18] <Derick> Gargoyle: which php version is that?
[13:28:36] <Gargoyle> PHP 5.3.10-1ubuntu3.2 with Suhosin-Patch (cli) (built: Jun 13 2012 17:19:58)
[13:32:46] <Derick> meh, that probably doesn't have that flag :-/
[13:40:58] <Gargoyle> never been in the situation where I needed to wring every last bit of performance, and apache has always been stable! (And damn easy to install!)
[13:41:29] <NodeX> It's just weird because aot of people use Mongo for the speed, then throttle it with apache
[13:41:38] <Gargoyle> NodeX: Same paste, refresh it.
[13:42:16] <Gargoyle> NodeX: Yeah, I'm aware that other webservers have been gaining ground over the last few years, not kept up with the progress properly.
[13:42:21] <Derick> NodeX: what used to be your connection string with the socket?
[14:46:07] <Gizmo_x> Derick: how can i query a reference many to many as here: https://groups.google.com/forum/?fromgroups=#!topic/doctrine-user/tG_jHF8XdEw
[14:46:56] <Derick> Gizmo_x: i've no idea about it...
[16:08:16] <Gargoyle> NodeX: This could be the longest drawn out conversation ever! But what do you use with php instead of apache?
[16:30:17] <veesahni> from the docs: "You may use sort() to return data in order without an index if the data set to be returned is small" .. this doesn't sound right.. limit() creates a small returned data set, but sorting needs to happen on the pre-limited() potentially large set.. am I missing something?
[16:31:09] <kali> veesahni: sort happens before limit
[16:31:23] <kali> veesahni: or else there is no way to get a predictable result
[16:33:03] <veesahni> kali: that's what I thought.. thanks
[16:34:05] <joshua> I have a shard cluster built, now wheres the best docs to start a 3 server configserver cluster... do you just start up 3 instances and point mongos to it, or is there more than that?
[16:34:34] <joshua> I wish they would just get a support contract with 10gen. heh
[19:20:52] <camonz> hi, is it posible to store and query a complex object, such an array of hashes inside a document? ex. https://gist.github.com/f16f02b496ce10b99ef3#file_new_format.json
[19:21:26] <camonz> also, i'm changing the keys to be information by itself instead of simply an accesor to a value