[09:14:03] <Siyfion> Has anyone got any experience with using mongoskin + node.js + Express
[09:14:23] <Siyfion> or just the standard mongo node.js driver for that matter
[09:15:18] <Rhaven> Hello, i'm stuck with some errors in mongos log. especially with "Out of file descriptors" and "Too many open file". I tried to edit /etc/security/limits.conf and restart… but nothing changed
[09:56:12] <Rhaven> did the persistent options in PHP driver works with mongos ?
[10:18:49] <todun_> how to install mongodb on mac osx?
[10:19:04] <todun_> following this: http://docs.mongodb.org/manual/tutorial/install-mongodb-on-os-x/#download-mongodb seems to be incomplete
[10:19:39] <todun_> because I cannot run it from the terminal.
[10:35:09] <NodeX> throw your mac in the bin coz they suck
[10:35:23] <NodeX> then rent a server and install it on that :P
[11:12:11] <Gargoyle> Launch Control is lying to you! :S
[11:12:37] <Gargoyle> I gotta dash! Try a reboot just incase the old one is still loaded.
[11:12:56] <todun_> okay. will do. thanks for all your help Gargoyle
[11:13:32] <Gargoyle> I might have a bit more time later if you're still stuck.
[11:14:15] <todun_> okay. will be here asking away.
[11:14:51] <Rhaven> Hello, i'm stuck with some errors in mongos log. especially with "Out of file descriptors" and "Too many open file". I tried to edit /etc/security/limits.conf and restart… but nothing changed. some ideas ?
[13:40:11] <kali> for ad tracking, i'm aggeregating stuff on an hourly basis, and push everything in mysql. then i use saiku (a "modern" mondrian frontend) and give that to the marketting guys
[13:47:19] <NodeX> the docs are very sparse for this sort of thing
[13:47:29] <kali> ha, i've had problems with sparse docs
[13:47:47] <kali> I think the AF still needs some polishing there
[13:48:53] <NodeX> I am trying to write some examples as I build my aggregation functions to help people
[13:50:13] <NodeX> [{"$match":{"ymd":{"$exists":true}}},{"$group":{"_id":{"aid":"$aid","acid":"$acid"},"total":{"$sum":1}}},{"$sort":{"total":-1}}] <----- works, just has the total outside of the results for each one
[13:51:09] <NodeX> bit of appside parsing will sort that out though
[14:08:09] <kokey> can one do substring/regex searches on field names?
[14:08:20] <kokey> I can only see documentation about doing it on field values
[15:40:38] <NodeX> oh right sorry, I thought you were using node
[15:41:05] <dr0id> me ? at this moment I am talking about php-mongo
[15:41:30] <dr0id> I think I read somewhere (sometime ago) that mongo updates the entire document (which is more work) - so just curious.
[15:52:39] <Gargoyle> Did something change internally / with php driver that would have just started causing 1/0 to no longer be interpreted as true/false ?
[15:55:46] <IAD> Gargoyle: use can set type in PHP manualy. i.e. $doc['field'] = (string)1;
[15:57:06] <Gargoyle> just wondered if it had changed in 2.2. I think we had mixed values of 0/false and 1/true, but our queries were still giving what we expected. Just had to put in an explicit $or
[15:57:28] <Gargoyle> Could just be some script has changed, and half our docs have been updated though.
[16:12:40] <NodeX> though I cannot recall if it stops after the cursor
[16:17:01] <gigo1980> has anyone run mongodb with supervisord for daemonizing ?
[16:53:28] <tfort> don't know if anyone is around right now, but since upgrading to 2.2 from 1.8 I've noticed that a few times a day, I get primary elections that will flap back and forth between servers within 10-20seconds (assuming the heartbeat)
[16:53:50] <tomlikestorock> I've added a server to my replicaset config, but it wasn't able to connect initially. How do I tell the mongo primary to try connecting again?
[16:54:47] <tfort> this appears to be the cause for crashing mongos servers that are in the middle of chunk migration (DBClientCursor::init call() failed)
[16:54:58] <tomlikestorock> er, hm. Seems like I'm getting this: unauthorized: no auth credentials provided for command and authenticated using internal user. This is most likely because you are using an old version of mongos
[16:55:26] <tfort> mongos --version, what's it say tom?
[16:56:26] <tfort> how'd you add the server to the replicaset? you can go to the primary master and just do an rs.add();
[16:56:51] <tomlikestorock> tfort: 2.2.0 on the new box, 2.0.6 on the old ones
[16:56:54] <tomlikestorock> I did rs.add on the primary
[16:56:57] <tomlikestorock> I just found: http://docs.mongodb.org/manual/release-notes/2.2/#upgrading-a-replica-set
[16:57:13] <tomlikestorock> and it says that since I'm running with auth, I need to basically bring the whole thing down, upgrade, then bring it all back up
[16:57:38] <tfort> yea, if you're using the authentication you have to follow the upgrade procedure in the release notes
[16:58:26] <tomlikestorock> it says to take down the secondaries, then bring down the primary. Does this mean that at a certain point all of them will be down?
[16:58:52] <tfort> no, you can do a stepdown on the primary
[16:59:58] <tomlikestorock> I am having trouble understanding how a 2.0.6 primary could fail over to a 2.2.0 secondary
[17:00:20] <tfort> If your replica set does not use authentication you may upgrade your replica set in any order, to minimize downtime, use the following procedure:
[17:00:20] <tfort> Upgrade the secondary members of the set one at a time by shutting down the mongod and replacing the 2.0 binary with the 2.2 binary.
[17:00:20] <tfort> Use the rs.stepDown() to step down the primary to allow the normal failover procedure.
[17:00:46] <tomlikestorock> right, but if I do, then I can't do that
[17:00:49] <tfort> you can bring them back up after you upgrade the binary
[17:42:24] <Vinx> hello all guys, I am newby in mongodb world. I want send in ajax query to mongodb that contains regex. ( http://pastebin.com/qSUriReK )but i always get errors...
[18:13:43] <jjshabs> hi, is this the appropriate place to ask a couple of questions on the pymongo driver ?
[18:18:00] <jjshabs> i'll target the question a bit better- should a python RLock be placed around an insert on a collection ?
[18:19:35] <tfort> have you looked around on the google group?
[18:21:41] <jjshabs> tfort: good point - looking now :)
[18:57:05] <davertron> I'm trying to use --eval and passing a file at the same time. in my --eval, i set a variable for the shell, but i don't want that to be required (i.e. i want my file to be "runnable" if given a var, but otherwise to just load all the functions). However, when I don't run my command with --eval, i get a reference error since that variable is not defined
[18:58:28] <davertron> here's an example of what i want
[21:07:59] <a|3x> is it possible to get a quick estimate on the result count in a large result set without explicitly using count() (i have tried explain() but it is also slow) ?
[21:19:04] <crudson> a|3x: total docs in collection or when passing an attribute query?
[21:54:26] <sqwishy> You can sort on a field containing arrays in mongo, and it works correctly, right?
[21:57:04] <crudson> a|3x: vote for this https://jira.mongodb.org/browse/SERVER-1752
[23:14:28] <gustonegro> is there anyway to specify in dot notation whether something is an array or object?
[23:15:10] <gustonegro> for exmple, how does mongo know if the 0 in foo.0.bar is an array at index zero or an object with field name "0" ?
[23:28:44] <wwilkins> dot-notation doesn't work like that. You have to use brackets iirc.
[23:32:56] <_m> gustonegro: Seems like a simple enough use-case. Would just try a few locally and find out.
[23:35:21] <_m> wwilkins: db.stuff.findOne({'foo.bar' : 1}) or db.stuff.findOne({'foo.bar.baz' : 0}) would be examples of dot notation in action.
[23:43:11] <gustonegro> _m: yeah, it doesn't matter if you are getting some value with dotnotation. however, if you are creating a value, it seems to always create an object with the number as the field name
[23:43:24] <gustonegro> I'm using mongoose on node...so this might be mongoose specific.
[23:47:13] <_m> Hrm.. Yeah, I would try doing an insert from the mongo shell first to see if the behaviour is the same.