[00:08:53] <jude0_> i just figure if you can query for the list of databases, you probably should be able to get the list of collections per db. has anyone figure out how/if you can do that?
[00:52:28] <MorehouseJ09> aving trouble with mongoos.js
[00:52:37] <MorehouseJ09> anyone tried replacing an instance method on a Model object?
[01:07:48] <MorehouseJ09> tried doing something like Mongooseinstance.schema.methods.test = ()
[01:07:59] <MorehouseJ09> and no bueno, can't seem to replace the instance method on an object with mongoose
[04:23:38] <jon_r> can anyone lend a hand with a geo query?
[07:53:43] <jrichardson_> i install mongodb in debian. how can i configure mongo to use shard with mongodb.conf? I know how to configure using command line, but can't figure out how to configure shard with mongodb.conf
[07:54:30] <jrichardson_> which is preferred as described in http://docs.mongodb.org/manual/reference/configuration-options/
[08:10:02] <manjush> Can anyone tell me what a logical data independence means(mention my name: and reply if you want to answer)
[08:32:08] <sinisa> hi all, im stuck with sorting in aggregation .. if someone can help
[08:32:40] <kali> manjush: i've observed you on various channel for a few days, and frankly, you need to learn when to use irc, and when to use google and wikipedia :)
[08:32:57] <kali> sinisa: and you need to ask real question, not rethorical ones :)
[08:37:58] <jrichardson_> is it possible to configure mongodb shard with debian package (which makes use of mongodb.conf)?
[08:38:07] <kali> sorting *before* building the array
[08:39:32] <sinisa> dont know is that possible .. im grouping , after grouping i have like group1:[doc1,doc5,doc22] .
[08:40:22] <manjush> kali: Things get difficult when you are in places like India
[08:41:08] <manjush> I know when to use irc but the thing is my internet speed which is 1.5 g not even 2g
[08:41:31] <sinisa> like for example.. cars {name:"ford",group:"sport"}{name:"honda",group:"coupe"}... im grouping on "group", and after that have to sort it by name in each group
[08:48:18] <sinisa> but after group everything goes messy .. isnt it :)
[11:52:45] <spicewiesel> I set up my replicaset and configservers, everything is up now, but auth fails if I try to connect to my mongos, on mongod instances my credentials are accepted. What did I wrong?
[12:38:45] <pwned> spicewiesel: did you bind them to their ips or just lolcalhost?
[12:39:25] <spicewiesel> pwned: to full hostnames, but I think I missed a thin, I did not add the shards, so I think there is no connection between configservers and replicaset atm.
[12:43:35] <spicewiesel> *I bound them on their ips and localhost, and tried to connect via hostnames :)
[13:39:59] <kobigurk> I have a question about the C# driver - I want a query using the positional operator $, when editing an array inside a document. I can use it when I specify the name of the field in a string, let's say "array.$", but I want to use the Generic version. I couldn't find an equivalent - is there?
[14:05:05] <thesheff17> anyone compile mongodb scons with distcc? no matter what I do it seems to not pick up my settings for this.
[14:44:29] <kali> you're supposed to use Collection.save(), not DB.command for that
[14:45:09] <kali> also, you'd better use DBObject than the json string hacks
[14:45:23] <as001> yup. but I am trying to do something a little different. IE before running a unit test run all commands in a file parse each to a dbobject and run a db.command()
[14:45:43] <as001> is something like that possible for setup for unit tests
[14:45:43] <kali> i'm not sure you can insert with a command
[14:45:58] <as001> is there a way to say switch to collection
[14:46:29] <kali> i don't understand what you mean
[14:47:17] <as001> so i am trying to do unit tests for my repo layer
[14:47:21] <kobigurk> I have a question about the C# driver - I want a query using the positional operator $, when editing an array inside a document. I can use it when I specify the name of the field in a string, let's say "array.$", but I want to use the Generic version. I couldn't find an equivalent - is there?
[14:47:46] <as001> I want to say setup the embedded database by executing commands file
[17:00:30] <dandre> when I insert a document in a collection, how can I get the new _id?
[18:19:38] <redfox_> Hi. I want to fetch all comments (subdocuments) from a post (root document) whose attribute "unlocked" is true. I dont want to fetch comments/subdocuments which have "unlocked" set to false. Can i achieve this with a single query?
[18:38:35] <astro73|roam> redfox_: check the find() parameters, specifically how they handle lists, and the $ projection operator
[19:22:50] <jegade> hi, i run into this error, once per day http://pastie.org/8067414
[19:39:06] <crudson> sorry I glanced and thought it was a client error. Can you identify what operation is causing this? I expect there is an application trace too somewhere or a record of the command.
[20:06:42] <cedrichurst> hi all, what's the best way of calling $addToSet on a multi update?
[20:07:51] <cedrichurst> db.myCollection.update({q: 5}, {$addToSet: "foo"}, {multi: true}) doesn't appear to do what i was hoping it would do
[20:14:40] <cedrichurst> sorry, this is the exact query i'm running...
[20:14:51] <cedrichurst> so that works in mongo-cli
[20:15:13] <cedrichurst> but when i try collection.updateMulti from the java driver, the addToSet is not acknowledged
[20:37:20] <cedrichurst> figured that one out, but now i have another issue… let's say i have a doc as {foo: ["bar", "buzz"]}. how do i query for all docs not containing "buzz" in its `foo` array?
[20:37:42] <cedrichurst> {foo: {$not: "buzz"}} doesn't appear to be doing what i expect
[20:48:16] <crudson> ok what are you trying to do - you have the same id in both parts..?
[20:48:57] <cedrichurst> i'm trying to find all documents in the ideal collection that do not have ObjectId("51c4b1b42882f3b37d2013e9") anywhere in their `o` field
[20:49:55] <cedrichurst> the $elemMatch example provides an example for something like {o: [{bar: "buzz"}]}
[20:50:23] <cedrichurst> but when i do `db.ideal.find({o: {$not: {$elemMatch: ObjectId("51c4b1b42882f3b37d2013e9")}}})` i get a `error: { "$err" : "$elemMatch needs an Object", "code" : 12517 }`
[20:50:36] <crudson> right, I thought you were doing something else, sorry
[20:51:19] <crudson> just {$ne: new ObjectId("51c4b1b42882f3b37d2013e9")}
[20:52:11] <cedrichurst> but that seems to return an object that should be filtered per my gist
[20:52:54] <cedrichurst> when i have {"o" : [ObjectId("51c4b1b42882f3b37d2013e9"), ObjectId("51c4b1b42882f3b37d2013ea"), ObjectId("51c4b1b42882f3b37d2013eb")]} for example
[20:53:25] <cedrichurst> ObjectId("51c4b1b42882f3b37d2013ea") is not equal to ObjectId("51c4b1b42882f3b37d2013e9") so the object is still getting returned
[20:54:16] <crudson> your gist has the same ID in both parts, which just effectively cancel each other out
[20:54:47] <cedrichurst> i thought the commas product a boolean AND?
[20:55:34] <cedrichurst> db.ideal.find({foo: "bar", buzz: "bang"}) should only return {foo: "bar", buzz: "bang"} and not {foo: "blah", buzz: "bang"}