[00:50:55] <eph3meral> jnewt, cool, gimme a minute
[00:51:44] <eph3meral> jnewt, k, have you tested copying and pasting any of that?
[00:51:53] <eph3meral> I can't really just copy paste an obvious portion and start using the data
[00:52:18] <eph3meral> jnewt, remove those "..." parts and surround the relevant portions with db.somecollection.insert(); for example
[00:52:50] <eph3meral> jnewt, include a use statement at the top, make it *super* easy, otherwise I personally at least (and probably many others) don't have or care to take the time to do it ourselves for your benefit :)
[06:50:34] <omnidan> I have a quick question. I trying to get a list of objects from a collection by searching for the ID of the reference. the reference is stored in "assigned_to" and I tried {"assigned_to.id": "ID"}, {"assigned_to": {"id": "ID"}} and ObjectId("ID") instead of "ID", none of these queries worked
[08:26:28] <jihyun> Hi, I'm testing sharding with hashed key,
[08:27:15] <jihyun> I added existing mongod as a shard, enable sharding for exising collection (~1GB)
[08:27:52] <jihyun> but collection is not distributed into multiple shard, and all queries are directed into single mongod instance.
[08:29:00] <jihyun> Documentation says that chunk larger than 64MB will be split,
[08:29:15] <jihyun> it there any way to trigger balancing/spliting?
[08:29:52] <kali> jihyun: first, check out getShardDistribution() on the collection
[09:38:32] <joannac> WHat were you trying before? 2.4.7?
[09:41:26] <joannac> WHat does the mongod logs say?
[09:46:12] <_Heisenberg_> Will updates that have been journaled get rolled back in case a primary steps down without replicating that update before?
[09:48:51] <eph3meral> is there any kind of layer similar to elasticsearch where I can provide "boosts" etc to various things so that I get a semi mixed bag of results
[09:49:29] <eph3meral> e.g. I should preferentially see higher paid listings first, but only to a point, after about say 25 miles or so I don't care about paid listings and I would get more use out of listings closer to me
[11:14:19] <omnidan> I have a quick question. I trying to get a list of objects from a collection by searching for the ID of the reference. the reference is stored in "assigned_to" and I tried {"assigned_to.id": "ID"}, {"assigned_to": {"id": "ID"}} and ObjectId("ID") instead of "ID", none of these queries worked
[11:16:29] <joannac> erm, show us the "assigned_to" field and the structure of your query? pastebin it pls
[14:28:31] <briefcaseofstuff> i just saw that on a page, ill try it
[14:32:23] <briefcaseofstuff> http://paste.laravel.com/11LG still doesnt work, any ideas?
[14:36:45] <briefcaseofstuff> nvm i got it, i think its supposed to be an obj in the array passed to aggregate, not part of the first obj
[15:14:17] <Nodex> anyone ever sed Mac in a cloud type services? - i/e renting a mac desktop and connecting to it remotely?
[15:18:59] <briefcaseofstuff> how do i get json back not bson with mongojs?
[15:42:32] <Xzyx987X> okay, this is bizzarre... why am I getting the error "Can't take a write lock while out of disk space" when my database is located on a disk with over a terrabyte of free space? and also, why is it that when I restart the program that's writing to the database the error goes away, at least for a while, until it starts happening again a few hours later?
[16:13:26] <cym3try> can I have the secondaries in the same server?
[16:47:20] <dharmaturtle> Is it possible to write to a collection from finalize or reduce? When I try it, I get TypeError: Cannot read property 'myCollection' of undefined near { db.myCollection.insert(value)' ",
[16:47:55] <dharmaturtle> and when I try to create to instanciate Mongo/db, I get: Mongo is not defined near 'conn = new Mongo();
[16:48:20] <dharmaturtle> (I'm running these from scripts, if that makes a difference)
[16:56:06] <kali> this is wrong. you must consider map, reduce and finalize as pure function, withou side effect
[16:56:40] <kali> it was kinda working until 2.2, but it was not intended
[18:36:46] <orngchkn> Does findAndModify in 2.4.7 still take a global write lock?
[18:37:25] <orngchkn> I'm currently crushing the crap out of our mongodb by using it with delayed::job (which uses findAndModify to atomically lock jobs in the queue)
[18:38:00] <orngchkn> Currently sitting at 100% lock in mongostat (with 277 connections)
[19:45:42] <dweeb_> If I run mongod using the nojournal=true option. Does mongo still store the data in the filesystem or are all data lost if I quit the process?
[19:54:02] <kali> you'll need a repair, and data may suffer various forms of corruption
[19:56:10] <bjori> dweeb_: data is stored on the filesystem yes
[19:56:33] <bjori> dweeb_: but if mongod or the server crashes before it flushes the new write to the filesystem you may loose some commits
[19:56:34] <dweeb_> I accidentally removed data from my db. So I restored the server from a snapshot. When the server restarted mongodb couldnt start so I removed the mongodb.lock file and now all my databases are empty. I ran repair but all dbs are still empty.
[20:00:33] <dweeb_> bjori: So I restore my server from snapshot. Shut down mongod process. Remove the lock file. Run mongod with --repair option. And then start mongod again with right dbpath option and file permissions. is that all?
[20:01:17] <Derick> you need to shutdown mongod before you restore
[20:23:12] <orngchkn> Given this query (findAndModify) https://gist.github.com/contentfree/cdfa6b8c4e0c49e63b49 could anyone help me adjust the indexes so they, ya know, get used? This query is generated by a ruby gem called delayed_job_mongoid and I'd love to contribute a fix back to their project, if possible.
[20:23:30] <orngchkn> (Sorry that GH put the files out of order)
[21:02:59] <ygnk> Would anyone know how to write pig schema to load array of ints frmo mongo for mongo-hadoop?
[23:22:41] <a|3x> when i use db.copyDatabase() command on localhost (3 gb database), its seems to execute very slowly, it looks like it is copying the data quickly but reindexing
[23:23:20] <a|3x> any idea how i can copy indexes as well?