[00:56:16] <pquery> anyone know why shard chunks wouldn't show up in a new shard after 12 hours?
[03:45:37] <advorak> This is probably a simple problem, but I'm not sure where to start looking in the documentation (I've just started using mongodb again recently) --- I have the following document format: {eligibles: {mobile: false, home: false, randomfieldname: true} }
[03:45:58] <advorak> I want to match all documents where a value in eligibles.* matches true ..
[03:50:41] <bean__> Probably need a mapreduce job for that
[03:52:37] <advorak> is there a better way that I should be organizing my data the would be better for searching in mongodb?
[03:53:25] <bean__> tbh I'm a sysadmin so I'm not really qualified to answer.
[03:54:49] <advorak> bean__, thanks for the idea, then :-)
[04:18:36] <advorak> how do I use "dot notation" when a key name has a space in it? http://docs.mongodb.org/manual/reference/glossary/#term-dot-notation
[04:28:34] <joshua> advorak: how did you end up with spaces? yikes
[05:26:36] <advorak> joshua: I figured it out.. though the reason for the spaces is that I'm scraping a website ..
[10:11:14] <jd823592> Hello, anyone who could advise me with mongodb for node.js? (mongoose)
[13:25:44] <leitz> How do you find a doc based on _id? This doesn't seem to work: db.grades.find({_id: '50906d7fa3c412bb040eb895' })
[13:26:37] <algernon> leitz: wrap it in an ObjectId()
[13:27:08] <algernon> leitz: _id: '...' searches for a string id, while most likely, it is an ObjectId
[13:28:07] <leitz> algernon, thanks. Still trying to find what quotes, if any to use. I had tried ObjectId("...") and am now trying others.
[14:13:55] <pquery> If I get a data transfer error when moving a chunk in a sharded collection is that a connectivity issue or config server issue or what? http://pastie.org/private/p0qa5mhz69xuqqws7plaog
[14:54:29] <devnill> I'm using mongoose.js in node and I'm having trouble figuring out exactly how to limit Model.update(). Is this possible?
[15:35:31] <pquery> is there a way in the config file to have the logs rotate automatically?
[15:42:47] <devnill> pquery: I'm not sure if mongo has a method to do it, but I use rsyslog
[16:26:28] <bean__> pquery: I'd use logrotate on your system
[19:38:44] <nachoelg> can i ask you a question i am working on ..
[19:38:54] <nachoelg> it´s been very painful so far
[19:39:53] <nachoelg> I have a collection to simply with two filelds date, money
[19:41:06] <nachoelg> and I need a query to get the information for this month to the result would be: date(this month), money(sum of this month's money), moneyLastMonth(sum of last month's money)
[19:41:30] <nachoelg> I could get this with two queries but i can´t join the two fields
[19:41:47] <nachoelg> I come from SQL so maybe that why i am confused
[19:50:02] <kali> nachoelg: the easiest way is to perform two queries and join them yourself after that
[19:51:49] <kali> as a matter of fact, on single request seems enough
[20:09:40] <nachoelg> imagine i got this var data1=[{date:1,money:7},{date:2,money:6},{date:3,money:100}] and data2=[{date:1,money2:19},{date:2,money2:7},{date:3,money2:37}]
[20:10:27] <kali> i thought you add aggregated data per month ?
[20:10:53] <nachoelg> and i want date3=[{date:1,money:7,money2:19},{date:2,money:6,money2:7},{date:3,money:100,money2:37}]
[20:13:13] <kali> well, on month, you'll never get a huge number of rows
[20:13:25] <kali> so anything faster than shell will get you a long way
[20:14:16] <nachoelg> I am getting good performance in SQL but i was planning to go for mongodb
[20:14:40] <nachoelg> in SQL is just two queries and a join for the field date
[20:14:53] <nachoelg> so i think it could be faster
[20:15:03] <kali> the expensive part is aggergating the data per month
[20:15:18] <kali> the rest is a formatting joke. anything will work.
[20:17:40] <nachoelg> I can get the aggregating part to work fast in mongo, i have it already. But I am having troubles merging, and it couldbe more that 2 data. For example date1 is list of moths in 2012, date2 the same for 2011 and date3 the same for 2010
[20:18:01] <nachoelg> I think i am not explaining very well sorry
[20:18:44] <nachoelg> i cant understand the function you just wrote
[20:19:04] <nachoelg> I think it will need 3 nested loops, one per data array
[20:19:44] <kali> sorry, i think i need a real example :)
[20:20:00] <nachoelg> for example for date=1, you need to grab money1 from data1 and money2 from data2 (where date=1) ..
[20:20:55] <kali> ha yeah, my function should read data2[i-1] at the end, to get the offset
[22:05:25] <JEisen83> Hey... I'm trying to diagnose a strange RS DNS issue. I have a few identical instances I'm adding to an existing replica set called mongo-new-01, mongo-new-02 and mongo-new-03. (All full DNS-resolvable names.) I'm able to rs.add mongo-new-01 and mongo-new-03 by name with no problem, but mongo-new-02 fails with the error about not finding self in new config. If I add it via IP, it works fine, but that makes it much more diffic
[22:05:25] <JEisen83> to track. Any ideas of where I can look?
[23:10:06] <ronson> Hi, if I have a collection that looks like this http://pastie.org/pastes/6035344/text?key=sedvugtexfrkzut6kcrgq, how do I find season 1 episode 2 of show Cool?
[23:15:11] <ronson> Zelest thanks i think it works
[23:16:07] <maplebed> Hi, reading http://docs.mongodb.org/manual/reference/current-op/#currentOp.locks it says that locks replaced the lockType. I used to be able to find reads by saying 'lockType == read' or writes by 'waitingForLck && lockType != "read"'. How do I search for only reads with this new format? it doesn't have read/write. Anybody have an example I can follow?
[23:45:30] <ronson> Zelest: actually that doesnt work
[23:45:39] <ronson> episodes is an array so dot notation doesnt work
[23:46:01] <_sri> what's the difference between $err, err and errmsg?
[23:46:44] <_sri> (quite hard to google for those terms... maybe someone has a link?)