[00:21:58] <Aleross> not really sure the validity of this because I haven't used Mongo's map reduce myself, but have you looked into the finalize function?
[00:22:14] <Aleross> not sure when you're trying to access the output either
[00:22:32] <Aleross> but finalize is called on the last reduce's output before it's saved to a temporary collection
[00:22:52] <Aleross> good place to manipulate the output
[00:27:52] <jtomasrl> is it possible to restrict the params allowed by a collection?
[00:35:19] <vsmatck> I don't know what "params allowed by a collection" means.
[00:40:26] <Aleross> jtomasrl: not sure if you can do it on the MongoDB level… doubt it, kind of goes against the whole idea of it, but you could (and should) do it at an application-level if necessary
[00:40:36] <Aleross> that is, if I'm interpreting "params" correctly
[00:42:47] <jtomasrl> Aleross, thats what i need to know, ty
[00:59:04] <ryanair> Aleross, I'm talking about *after* reduce's output is saved. I'm seeing documents formatted like this {"_id": 1, "values":{...}} when what I want is this: {"_id":1, "value1": ..., "value2": ..., "value3": ..., ...}. It doesn't seem like finalize would help me do this.
[01:07:15] <Aleross> ryanair: my understanding is that you can do basically anything with finalize, so what I would do is *before* saving the temporary collection just run finalize and break value1, value2, and value3 out of "values", creating a new collection that will ultimately be saved in the format you want
[01:07:39] <Aleross> ryanair: there's no point in saving it as _id:, values: if that's not what you want… might as well manipulate it before saving
[02:34:57] <emocakes> ok, so im dropping one step back in my yearning for new things, still gonna use mongo, but coupling it with something I know, node
[02:35:08] <emocakes> play framework is just wtf messy
[05:49:22] <gigo1980> hi all, how is it posible to deactivate sharding for one database ?
[05:51:27] <gigo1980> so the reversal of db.adminCommand({enablesharding:"mydatabase"})
[06:44:35] <zykes-> can one do master-master repl with mongo ?
[08:14:37] <firejocker> i'm starting using django-mongo, but following the run of a User.objects.get(username=username), i saw that all database values are in QuerySet of query.py
[08:16:03] <firejocker> am i right to think there is a problem there, i mean, to see all the users in memory is bad for performancties
[09:25:44] <topriddy> trying to find previous version of mongo on my cent os server, delete it and do a fresh reinstall from some other repos=> 10gen
[09:57:47] <zeus_> hey, i've build cluster with 9 machines. At first i got 12000 ins/sec now its down to 400 ins/sec - what happend ? Whole indexes fit into RAM, its sharded properly.
[10:03:11] <zeus_> here is a part of my mongostat log http://pastie.org/4596421
[10:11:21] <zeus_> I have no idea what to do next, please help
[10:16:58] <Bartzy> Besides cursor timeout - there are no other timeouts for a connection in itself ? For example, I have a long running PHP worker. It creates a MongoCollection object when it starts, and when it gets a job - it calls update() on that MongoCollection object.
[10:17:09] <Bartzy> Can that MongoCollection object time out ? meaning the connection itself will timeout ? And if it can - the drivers handle it internally, or I need to do something ?
[10:50:21] <Bartzy> NodeX: But for the current one (not the new 1.3 version) - If I do $mongo = new Mongo(..) on each job the workers get - that would not create a connection for each job ?
[10:53:32] <NodeX> you can make them use an old or share a connection
[10:55:30] <NodeX> http://us2.php.net/manual/en/mongo.connecting.php <--- read down on connection pooling
[10:56:06] <NodeX> "This section is not relevant for 1.2.0+. In 1.2.0+, connections are always persistent and managed automatically by the driver. See MongoPool for more information on pooling. "
[11:00:12] <kali> emocakes: mongodb does not give a damn who integrated the hardware
[11:10:22] <kali> emocakes: i think it's not a good idea to use node.js as your main framework, but rather as a way to handle endpoints with special features, like comet like features, or file upload, etc
[11:10:25] <emocakes> i dont want to say fat as i might offend some people
[11:13:03] <emocakes> and doesnt support namespacing
[11:13:26] <kali> same way we use scala and unfiltered here, actualy. if rails + cache is enough, then fine. if the endpoint is not cacheable and performance critical -> scala.
[11:37:01] <NodeX> that G-wan guy is up his own ass
[11:37:41] <NodeX> saying that single server performance is better than horizintal scaling .. yeh dude what happens when your single server dies IDIOT!
[11:39:23] <algernon> but g-wan never dies. only crap free software do that, didn't you know? :P
[11:39:51] <NodeX> g-wan may not die but hardware does!!
[11:40:39] <NodeX> give me 90 euro 16gb RAM + 2tb servers (plus replica sets) any day over a single server wiht no fault tollerance
[11:55:38] <zeus_> how to debug why writes to mongo cluster are so slow ? is there a better tool than mongostat ?
[13:43:14] <solars> hey, quick question - how do user restrictions work? I've added an admin user and user on a different db, but can still access the db without password from a rails app - how exactly does this work?
[13:46:42] <Derick> solars: did you start mongod with auth enabled?
[14:11:38] <bjori> solars: if you authenticate against the admin db you can browse all other dbs. otherwise you have to authenticate against the individual dbs
[14:13:28] <solars> I've not specified any credentials in the rails app
[14:13:49] <solars> if I do a $ mongo localhost/mydb - should I also get access denied?
[14:21:07] <solars> bjori, now it seems to work, weird
[14:21:21] <solars> if a db does not have a user, I can access it without I guess?
[15:23:41] <geoffeg> hmm, creating a capped collection blocks all other operations while the collection is being created?
[15:51:12] <jgornick> Hey guys, I created a collection that contains documents with one field that mapped to another document using a DBRef. If the driver support dbrefs, I should be able to make queries on that collection that allow me to sort or filter the resultset? Something like db.tempCollection.find({ ref.someField: 'test' }).sort({ ref.anotherField: -1 });
[15:56:02] <NodeX> jgornick : if you're using alot of refs I should reconsider your schema
[15:56:15] <jgornick> This is a temporary collection where I've aggregated data using map/reduce. Instead of populating the temporary collection with cloned documents, I wanted to populate it with dbrefs to those documents.
[15:56:59] <NodeX> as Derick said it does not auto follow them so it's prolly not useful for you in your case
[17:32:17] <ramsey> I'm a little worried about the "couldn't send query" messages I get intermittently with the PHP driver (1.2.12). They seem to happen a lot on my development VM, but they don't happen at all for another developer. Should I be concerned about the stability of the driver?
[17:42:01] <TheSimkin> it's prett quiet in here isn't it ramsey
[17:42:08] <TheSimkin> starting to wonder if there is a more official channel
[17:42:19] <ramsey> TheSimkin: this is the official channel :-)
[17:42:26] <TheSimkin> i don't have the anwer to your question ramsey, i am a newb.
[17:42:33] <TheSimkin> but i am interseted in working with php too
[17:42:46] <TheSimkin> i just emerged mongodb yesterday.
[17:43:03] <ramsey> TheSimkin: the forums are probably the best place to get answers, but I like IRC. :-) https://groups.google.com/forum/?fromgroups#!forum/mongodb-user
[17:43:17] <TheSimkin> i got couchdb too, but couchdb is producing a piles of errors even with their own test cases on a base install
[17:44:06] <TheSimkin> i gues it is up to us tobecome masters of mongo and help the chan along :)
[19:17:51] <jgornick> hey guys, are there any statistics related to performance with large collections?
[19:20:57] <jgornick> I guess I'm looking for some sort of a guideline that says, "You should try avoiding n number of documents in a collection as this is where performance degrades."
[19:28:09] <kali> jgornick: it does not work that way. whatever fits in memory is the key.
[20:01:58] <Ahlee> Are you by chance confusing replica sets and shards?
[20:04:03] <BurtyB> Ahlee, (I don't have replica sets atm) I was failing at noticing the length of the numbers so what's wrong is my eyesite :/ I figured it was me doing something wrong somewhere
[20:04:36] <BurtyB> Ahlee, thanks for fixing the error of my ways :)
[20:16:54] <addisonj> so, I am moving our production mongo to AWS and am using RAID on EBS, currently, we just use mongodump for backups, is the biggest benefit to using EBS snapshots just speed and offloading the work?
[20:26:55] <freezey> you can move away from mongodump if you just snapshot
[20:27:02] <freezey> they are simple fast and easy
[21:19:03] <doxavore> Has anyone had luck getting nginx-gridfs to work in Ubuntu 12.04?
[22:30:35] <Yiq> So I thought nosql and sql databases were basically for different use but a lot of people are saying nosql(couch, mongo) is the way to go for webapps, dynamic applications. Why is it better(or is it? obv there must be stuff where each is better)?
[22:32:06] <sirpengi> those people are wrong (imo)
[22:32:52] <sirpengi> each database has their strenghts and weaknesses
[23:51:41] <bluethundr> hello.. I've installed mongodb on centos 5.8 .. I've added the line extension=mongo.so into my php.ini file but for some reason a phpinfo(); page does not show that it is enabled
[23:52:01] <bluethundr> what do I have to do to enable mongodb for apache 2.2.2 under centos? tx
[23:54:30] <_johnny> if php does not list mongo, then make sure you edit the correct php.ini, or that your php process/daemon uses the ini you expect