[00:28:38] <cheeser> joins are definitely not necessary for a CMS
[01:19:17] <YuviPanda> ok, have a proper puppetized instance running 2.6 on wikimedia toollabs! Now to write a script that gives everyone an account...
[05:54:12] <norfrn> How would you index/query an array of arrays? It's an array of ranges that I need to check membership in.
[07:56:07] <KamZou> Hi, i'm trying to resync a replicaset member. The primary have a very large amount of updates and everytime the resync fail and my replicaset member stay in the "recovering" state. Any way to resync avoiding this comportment (without copying manually data from the sane one) please ?
[07:59:20] <KamZou> joannac right now I've (re) started the replication (by stopping mongodb rsm stale member, cleaning up the data dir and starting again)
[07:59:39] <KamZou> Maybe I'll have the same result in 2-3 hours
[11:43:43] <inad922> If I have a document in mongodb and I use the pymongo connector how can I add a new field to the given document type with a default value also set for that field?
[13:13:03] <djlee> Could someone tell me, are MongoId's represented in hex format, lexographically ordered by the time the id was generated. (i.e. if ordering alphabetically the hex string id's, will they be ordered by "creation timestamp"). Looking at some sample data, this seems to be true, but i only have a small sample size and i'm only comparing things by eye
[13:15:02] <cheeser> why not just sort on _id order?
[13:18:41] <djlee> cheeser: just trying to work out some data feeds. We use redis for our feeds. Client has asked for a different kind of feed where we order by "likes", then order by creation timestamp for objects with teh same count of "likes". Problem is redis lexographically sorts keys with duplicate scores (in a sorted set), so i was kind of hoping that the lex ordering would just happen to nullify the issue. Looks like doing someth
[13:18:41] <djlee> ing a little more involved. Currently wandering down the lines of ZUNIONSTORE and messing with teh aggregation weights
[13:19:04] <djlee> but thats for the reply cheeser, at least i know i need to do something to make it happen, rather that it happening by luck/chance
[13:20:13] <djlee> thanks* for the reply (must learn to type correctly)
[18:11:45] <dgarstang> I'm trying to build mongo on CentOS. I'm getting the following error... "Target 'build/linux2/ssl/use-system-all/usev8/mongo/mongod' depends on the availability of a system provided library for 'stemmer', but no suitable library was found during configuration."
[18:12:08] <dgarstang> I installed what I think is teh relevant package, perl-Lingua-Stem-Snowball, but that did not help.
[18:17:29] <mylord> how can i treat uid as a variable here (javascript): criteria = {"_id":new BSON.ObjectID(tid), "users.uid":{"$exists":true}};
[18:25:02] <jumanji> hi guys wondering how I can implement this in mongodb, or whether I should use a graph db instead. http://stackoverflow.com/questions/23896370/how-to-store-a-tree-structure-of-documents-json-and-access-each-parent-or-chil
[18:52:34] <dgarstang> I'm trying to build mongo on CentOS. I'm getting the following error... "Target 'build/linux2/ssl/use-system-all/usev8/mongo/mongod' depends on the availability of a system provided library for 'stemmer', but no suitable library was found during configuration."
[19:39:21] <tg2_> IndexRebuilder Fatal Assertion crash, any diea?
[19:51:37] <mylord> why can't I use $position with $each here? https://gist.github.com/anonymous/0a9a8fb77efa005e5ec8
[19:57:07] <mylord> alternatively, how can I added the most recently added (default is last?) element in an array or a subdocument?
[20:11:40] <mylord> ^ how to update score in the last element in users "u1" array (or by last "joined")?
[20:12:06] <Joeskyyy> *shrugs* that's how the mongo folks made it I suppose?
[20:12:09] <tg2_> so is it normal not to have an admin table? :|
[20:24:13] <mylord> i think i might have installed mongo with port before.. do i need to uninstall it first before installing with brew?
[20:25:53] <therealkoopa> Is there a way to sort by introducing a modifying component? e.g. if you have views and likes on some object, you can sort on views or likes. But what if youw anted to sort on "likes * 1000 + views"
[20:28:23] <nicholasdipiazza> I was seeing tons of MongoCleaner threads when I called new MongoClient() every time I needed a connection. So I switched to a singleton. Is MongoClient() thread safe?
[20:28:57] <nicholasdipiazza> when i switced to the singleton, no more cleaner threads kept on spawning
[20:29:25] <nicholasdipiazza> but now i'm worried if i put this out on a load test, the load test will show threading race conditions or something
[20:39:38] <MonsieurApple> is there any type of redundancy when it comes to config servers? I had a box with a config server on it go down today and everything sort of halted, no new connections allowed
[20:42:48] <tscanausa> MonsieurApple: do you have multiple config servers?
[21:36:15] <jason0_> Howdy all-- question about mongo. When using the mongo client-- are commands run in parallel on the backend. For example myCollection.find().count()?
[21:37:23] <jimpop> so... if you only need to do period db syncs, would you copy+clone+rename the collection, perform a whole db clone, use a replSet, or slaves?
[21:40:32] <therealkoopa> tscanausa: If I use aggregations, I see I can do: doctoredPageViews : { $add:["$pageViews", 10] }
[21:59:46] <therealkoopa> If I use just $project in a db.foobars.aggregrate, things work.
[22:00:03] <therealkoopa> As soon as I add $limit, $sort, or $match, I get an exception " A pipeline stage specification object must contain exactly one field."
[22:00:13] <therealkoopa> I'm not sure I understand what it wants
[22:01:52] <Derick> therealkoopa: show the pipeline on a pastebin
[22:05:36] <mylord> ^ trying to add a “u1” to users at position 0 in this data: for this data: https://gist.github.com/anonymous/f2ddd9b0596fab84d69d
[22:06:00] <therealkoopa> Derick: Oh wow, okay. Thanks. I didn't realize you passed in an array. Totally overlooked that.
[22:06:16] <mylord> mongo doesn’t like the $aach key:values I have, but I don’t get how i’m supposed to only have the values and still make the update as intended
[22:06:29] <Derick> mylord: use quotes around '$each' and stuff
[23:03:13] <dgarstang> I'm trying to build mongo 2.6.1... and I'm getting "collect2: error: ld returned 1 exit status ... scons: *** [build/linux2/64/ssl/mongo/mongoimport] Error 1"
[23:10:37] <dgarstang> I'm trying to build mongo 2.6.1... and I'm getting "collect2: error: ld returned 1 exit status ... scons: *** [build/linux2/64/ssl/mongo/mongoimport] Error 1"
[23:27:55] <NaN> do you guys recommend me to use gridfs to store pdf (<10mb) files? or should I use the classic pattern of store only the path to the file?