[08:56:34] <Lujeni> Hello, someone can help me with this error http://pastebin.com/kG76dRVj ? Thx
[09:24:14] <arussel> I have a doc with a unique index (email + name), is it better to use native id and add unique index for (email + name) or use email + ":" + name as primary key ?
[09:24:34] <arussel> or is it the same for mongo ?
[09:35:26] <jwilliams_> i read that mongodb mapreduce should not to access database during map, reduce, and finalize phase (http://docs.mongodb.org/manual/reference/commands/#mapReduce).
[09:35:39] <jwilliams_> does that mean mapreduce is only for read only operation?
[09:35:51] <ron> arussel: umm, you're asking whether you should add another field to a document just to use that as a key?
[09:38:04] <jwilliams_> and if data manipulation is needed (in e.g. sharded mongo cluster), would common mongo's javascript be performant? or what is recommended as alternative?
[09:44:14] <kali> jwilliams_: mongo javascript is not performant
[09:45:03] <kali> jwilliams_: i would recommended to avoid it in production environments
[09:45:42] <ron> it's kinda weird. you'd expect javascript to be very performant.
[09:45:56] <kali> jwilliams_: it can be helpful in development / debugging situation, though, and can be acceptable for occasional batch processing
[09:50:37] <arussel> ron: no, I have 2 field email and name. (email + name) should be unique. I'm asking if I should use email + ":" + name a id or use default mongo id and add a unique index on email + name
[09:52:35] <ron> arussel: I see. well, that's one way to solve it, yeah, though it's a matter of preference. I think it may also depend on *how* you're going to use the _id of the document, whether they'll be exposed somehow. if they will, then you may have some privacy issues.
[09:55:34] <ron> some people here say that as a best practice, the _id should remain the ObjectID. however, I must I admit I've yet to hear arguments to explain WHY it is a best practice (again, not saying it isn't, just that I can't explain the reasoning of it).
[10:01:11] <NodeX> _id is always garunteed to be unique across shards
[10:07:08] <NodeX> my advice is use ObjectId and have a unique index on name + email - this gives the MOST flexibility
[10:30:12] <wereHamster> the argument against putting the email or username into _id is that _id cano not change, while the user might want to change his email/username.
[10:51:45] <NodeX> kali : it's about a gambling addict who moves from vegas to new york and becomes a book keeper for sports betting with some genious kid
[11:51:14] <jtopper> how is it that the docs at http://docs.mongodb.org/manual/reference/method/db.addUser/ don't cover the return values for that method?
[11:55:05] <Derick> jtopper: i think you'd find that for most commands right now
[11:55:12] <Derick> I think I have filed an issue for that, let me check
[11:57:16] <Derick> nope, only for RPs - jtopper can you file a documentation issue at https://jira.mongodb.org/browse/DOCS ?
[12:22:21] <lucian> i'm having trouble with mongod starting up on ubuntu 12.10, with both ubuntu and 10gen repos. service mongodb start gives me a pid, but there's no actual process running. if i start it again, it prints another pid, but same problem
[13:40:54] <NodeX> $pull does not work with the positional operator :(
[14:23:04] <sebastian> hey guys I'm trying to copy a database and it's saying "exception: E11000 duplicate key error index: .... blah" but there are no real duplicates in there
[15:38:41] <Infin1ty> I have a cluster of 3 shards, each shard is a replicaset with 3 members, i want to add another 2 shards (3 replicaset members per shard)
[15:38:55] <Infin1ty> should i first create the replicaset as two standalones replicasets
[15:39:06] <Infin1ty> then add those replicasets to the cluster using sh.addsh?
[15:48:32] <try_it> ok, i've installed mongodb on localhost and db.test.save({a: 10}); db.test.find() returns nonempty array with 'a' record.
[15:48:54] <try_it> so, can someone ban this shit spouting NodeX troll?
[15:50:28] <Gargoyle> try_it: This isn't kindergarden. If you failed to do that task, then you havent ready ANY docs, and there is 99.999% chance your link is spam. If you really wanted someone to look, use a well known pastebin.
[15:50:58] <Gargoyle> try_it: And asking for bans will most likely only succeed in getting yourself banned.
[15:52:27] <try_it> Gargoyle: are you kidding? I haven't failed with mongo on localhost, web repl is failng, and i not going to convince you in your incompetency since i don't give much care about it
[16:22:31] <NodeX> not once did you explain it my be due to memory... now you "claim" to know what it's related to. I bet people love talking to you kid
[16:30:30] <obryan> Also if you have multiple options it often comes down to which one you prefer, in Ruby there is mongomapper and mongoid, I just happen to prefer mongoid.
[16:30:33] <moogway> but I wanted to use python and I like the concept of NoSQL (because it's intuitive for me, as compared to SQL)
[16:30:53] <Okasu> obryan: Yeah, mongoid is a good one.
[16:31:36] <obryan> Well from my scanty knowledge of python-mongo, the django-mongodb comes up alot, so something for popularity?
[16:31:46] <moogway> hmm, so I shouldn't worry about support and active development? Because it seems MongoEngine is not as well supported as django-mongodb
[16:31:50] <NodeX> from what I gather; most drivers do the same thing, a few have ORM's and things with them but they generaly all give you API like access to the mongodb so your app will be agnostic
[16:32:13] <moogway> obryan: exactly, django-mongodb does come up a lot
[16:32:19] <obryan> Well that can happen to any project, but if its developed enough like Capistrano it can be essentially abandoned and be good for a long time
[16:33:16] <moogway> so it's cool to go ahead with anything, right?
[16:33:46] <obryan> if you have options, play with'm and go with the one you like
[16:34:23] <NodeX> You should not listen to obryan : he doens't know what he;s talking about
[19:22:01] <Edgan> Why is there no mongos.conf in the mongodb-10gen ubuntu-upstart packages?
[19:24:15] <Edgan> better said /etc/init/mongos.conf
[19:31:08] <rickibalboa> How do I deal with storing keys that have disallowed characters in them, such as dots. I can't not do it because the architecture is already in place a lot of changes would need to be made, is there a function for like encoding these or something?
[19:36:46] <rickibalboa> Never mind i'll just base64 encode it
[19:44:34] <jhammerman> Hi MongoDB users list. I am spinning up a pair of MongoDB Replica Sets in AWS and both of the arbiters on on of the nodes are unable to communicate with the masters. I have tested inter-node connectivity the wire is not the problem. The logs show this: DBClientBase::findN: transport error: 10, checkEmpty: false, from: $auth: {} }
[19:45:47] <jhammerman> The arbiter itself is telling me to run rs.initiate, but that can't be right. I've tried restarting all of the daemons and I've tried running rs.reconfig, and I've tried removing and reading the arbiter. I'm completely open to suggestions!
[19:46:42] <jhammerman> I do have noprealloc=true in the mongod.conf on the arbiter nodes, since ELB storage space is limited
[20:39:41] <kali> NodeX: i think you meant "over under"
[20:44:53] <moogway> hi, any idea about the integration of mongodb with django 1.4? is it on? does it work? or is it really buggy?
[20:45:20] <moogway> i've been reading up here and there and it seems to me that the thing is buggy
[21:48:49] <ekristen> does there exist such a tool that is web based that allows for dynamic document creation/editing in mongo?
[22:07:10] <JakePee> Trying to write a script to migrate some of our stuff in our schema. Essentially convert objects to arrays. Anyone have any insight into optimizing this:
[22:48:51] <timvdm> Is it possible to extend mongodb with C++ plugins? I saw the src/db/module.h file which might be relevant but I can't find much information about this.
[22:56:05] <jaimef> is there a way to specify non-voting member when doing rs.add()?
[23:37:25] <midinerd_> mongodb had a bit of a learning curve at first but I'm really digging it now...
[23:43:52] <midinerd_> With mongoexport - do I have to specify all fields in a collection or is there an arg I can use to indicate "export all fields" ?
[23:45:41] <Auz> I think if you leave off the --fields it will assume all fields.
[23:46:00] <midinerd_> Yeah, I figure, but it says "you need to specify fields"
[23:46:17] <midinerd_> The actual line I'm using is: mongoexport --host viglbuildXXXX:27017 --csv -o flat_table.csv -c jordanitems