[03:46:20] <quuxman> joannac: I'm not concerned with insertions
[03:46:56] <quuxman> I'm modifying an attribute with a large index, and would like to be able to allow for the index to be inconsistent during a bulk update in exchange for reasonable performance
[03:47:42] <quuxman> I've encountered this problem with MySQL, and my solution was always to drop the table, recreate it, then run a bulk insert
[03:48:02] <quuxman> that generally ran 10 to 100 times faster than updating each record
[03:52:56] <joannac> quuxman: Sorry, I always do that. I meant multi:true
[03:53:08] <joannac> Somehow in my head multi and upsert are confused
[10:11:48] <naillwind> wih db.collection.update({_id: "id"}, {$set: { fieldName: {} }}) I can add a field to a collection, but how do I create that field with an empty array?
[12:13:10] <wesley> Hi! command denied: { replSetHeartbeat: "rs0", v: 3, pv: 1, checkEmpty: false, from: "host-a-db20:27017" } Any clue where to look for this, on how to fix it ?
[13:39:16] <roelmonnens> Hello I'm trying to build a notification-system. I want to push new items into a capped collection (is needed for tailable cursor). Then read new stuff with a tailable cursor. This will be used by 100 000 users. The structure of the objects is not clear and can be different with each insert. How do you determine how big the capped collection may be?
[13:39:27] <roelmonnens> Or should I make collections per user?
[13:50:05] <Nodex> you don't want 100,000 collections
[13:50:12] <Nodex> not even sure you can have that many anyway
[14:01:46] <Nodex> anyone ever pushed $in to the limit?
[15:14:15] <jordz> If I'm setting up a new sharded collection and I'm sharding by something like "username", I have 2 shards and I'm about to import 120,000 documents with ~20,000 different users, will it split the data over both shards initially or will it all end up on one?
[15:14:53] <Fishbowne> what is best way to interface mongodb to webserver ?
[15:16:19] <Nodex> Fishbowne : via your server side language
[15:17:04] <Fishbowne> is there something like CouchDB's web interface ?
[15:18:48] <Nodex> no, not for writing, read only iirc
[15:20:00] <hell_razer> Nodex, {$addToSet:{foo:"bar"},$inc:{some_counter:1}} that inc on all addToSetm but i need only on successful, like if added then inc counter
[15:37:34] <zumba_addict> morning folks, is mongodb the same as nosql?
[15:41:01] <nathanielc_> MongoDB is a form of a NoSQL database, there are many falvors of NoSQL. Take a look here: http://kkovacs.eu/cassandra-vs-mongodb-vs-couchdb-vs-redis
[15:41:11] <jordz> Schema wise, growing documents can be very bad, but I'm currently trialing a weekly data bucket for stats. Some documents may only be very small whereas others will probably be larger. Will the fact that document sizes can differ be an issue?
[15:42:16] <jordz> Each document contains 7 objects for each day and these can intern have 1000 objects in each day or 10, the objects are simple a number and a key
[15:43:38] <jordz> but I'm wondering if this will cause a performance issue
[15:44:45] <nathanielc_> jordz: Not an expert but my understanding is that only changing the documents over time can cause issues
[15:45:41] <nathanielc_> basically mongo monitors the growth rate of documents and adds a few extra bytes of padding on insert. If the documents are not changing then independent of size the padding will be little to none
[15:45:50] <cheeser> jordz: it won't be a problem, no.
[15:46:57] <Derick> Nodex: what do you mean by "recast" ?
[15:47:09] <jordz> Thanks guys! The documents will be varying in sizes, so maybe a week for one specific item will have 4 in each
[15:47:23] <jordz> where as for another it could easily have 1000 for each of the 7 days in the root document
[15:48:08] <jordz> The documents are updated daily
[15:48:36] <jordz> I did read somewhere that preallocating data could reduce moves
[15:53:20] <Nodex> Derick : cast it back to a MongoId
[15:58:12] <Derick> Nodex: ? huh what? You're not making sense
[16:02:34] <Nodex> lmao, how come. Q. Does the PHP driver cast _id's back to ObjectId's when it returns results from the dataabase
[16:02:46] <Nodex> I can't see how that doens;'t make sense
[16:28:18] <banzounet> Hey guys When I try to save this (it's the part of a dump from php) : https://gist.github.com/BaNzounet/50299dd9179326f533ec I get : zero-length keys are not allowed, did you use $ with double quotes? and when I remove the mailchimp structure it doesn't fail any idea?
[16:29:45] <Derick> banzounet: you can only store public properties
[16:31:26] <banzounet> Derick: it doesn't fail with _export:protected => NULL So I guess the mapper I've got do the converction
[18:44:53] <ppetermann> i'm having a slight "i might not able to do this (anymore) with my documents"-problem here,
[18:45:24] <ppetermann> i used to be able to query the db during a map, but since a few versions thats not working anymore - is there any way to enable that?
[18:46:07] <ppetermann> problem is my documents don't have all data that i need during the mapping (and i can't add that information)
[18:47:38] <tomasso> I have a set of polygons on a map , then I query for a point located in other country to test, and I still get results.. :S should that be working fine?
[19:00:25] <bhangm> agg fwk question - Is there any way to $project the first element of an array? other than using $unwind w/ $group and some kind of ordering i.e.
[19:01:29] <retran> bhangm, i dont know what your question means because those variable names only have meaning to you
[19:01:45] <bhangm> retran: those are not variable names
[19:01:55] <bhangm> they are aggregation framework operators
[19:07:00] <kali> bhangm: $unwind / $group with $first
[19:08:01] <bhangm> kali: thx, I thought so, was hoping to have some kind of positional extraction sort of like the array.$ syntax but I'll just use $unwind
[19:08:22] <kali> bhangm: have you tried array.0 ?
[19:08:36] <kali> bhangm: i don't think that works but...
[19:09:06] <bhangm> kali: I tried it, but no dice. It just added an empty array for the computed field
[19:27:21] <h_ags> quick question about mongo/mongoose
[19:27:52] <h_ags> for some reason my queries are being put in the collection queue even though mongoose.connection.readyState == 1. Not sure where to go from here on debugging this. Any thoughts?
[21:11:34] <_maes_> hello everyone, could please someone shed some light on what this could be and how to fix this:
[21:11:34] <_maes_> [Balancer] caught exception while doing balance: can't move shard to its current location!
[21:21:05] <qswz> Fishbowne mo,ngo from javascript: http://jsbin.com/epudowe/1/edit
[23:18:03] <ram9> Hi.. we are trying to change 14k records, with a bunch of atomic operations - the changes don't appear going through - we've tested our migration on 3 different environments and are seeing this behavior now in production - we've restoreed the previous release and db and now are trying to find out what could be wrong.