[00:28:48] <hdm> anyone know if you can cancel a background indexing operation?
[00:29:21] <hdm> it doesn't seem to show up in db.currentOp() list and this particular one went into background mode by mistake and is killing db performance while it runs (3T dataset)
[00:55:38] <tpae> what's the best practice for indices.. setting fields ascending/descending? does it affect the insertion or retrieval or both? should ones that called more frequently be at the "top"?
[01:45:01] <crudson> tpae: direction isn't enormously important for a simple index
[01:45:15] <crudson> tpae: for compound indexes it will more
[02:52:58] <Oddman> if i have a whole stack of asset dependencies, upon each other - is it better to use some sort of slug or something as the identifier, rather than an ID? The reason I ask is because knowing the IDs when creating assets and sending to another is a little annoying.
[04:24:25] <tpae> what's the best way to build a queue via mongo?
[05:22:59] <sat2050> can someone tell me the meaning of this error
[05:23:02] <sat2050> Wed Oct 10 05:17:48 [rsSync] info DFM::findAll(): extent 5:74314000 was empty, skipping ahead. ns:local.replset.minvalid
[05:25:07] <amitprakash> Hi.. i am constantly getting a DFM::findAll(): extent 5:74314000 was empty, skipping ahead. ns:local.replset.minvalid on my secondary severs.. should I be worried?
[06:08:00] <chovy> is there a url type for an object?
[11:13:23] <NodeX> Jrz : I dont have a clue what "game(state, participants(player, removed), currentplayer) and players(….)" means
[11:42:47] <timroes> Hi I have a question about a load test. I used the following script: http://pastebin.com/wA2DXWwt and run it 20 times parallel. So its running now since around two hours and memory is slowly but steadily filling. It started with around 200MB memory load, now its at 1.5GB and youc an watch it increasing. I guess there is some misstake in the script, since I guess MongoDB won't run out of memory just because of some write/read opera
[11:52:00] <NodeX> timroes : the memory is filled up by MRU
[11:52:53] <timroes> okay, as it seem it is also stopping now around 1.5GB (on a 2GB machine)
[11:53:04] <timroes> so it takes care, that it will never run out of memory?
[12:45:31] <Jrz> NodeX: collection games, with each document to have a state, and a list of participants, which point to a player and field 'removed'..
[12:52:53] <stevie-bash> Hello, Can somebody explain me, where we loose the 226 millis in this explain: http://pastie.org/private/pffchctikhnabkyzofbfua. Its mongodb 2.2.0 and the query was done via a router.
[14:39:05] <sag> it can be a huge problems for legacy systems
[14:40:03] <sag> consider this, i am on old kernel, say Centos 3.06 then im having apache 2.0.63, php 5.2.6 ..now tell me can i use mongo driver safely
[14:40:40] <sag> i dont think so, as 1.3.0beta2 says it will need php >=5.3
[14:40:48] <doxavore> If I want to copy a database to another name on the same machine, can I shut down mongod, copy the files (with the new DB name in them), and start the server? Or am I asking for trouble?
[15:23:04] <NodeX> good thing I'm the only maintainer and I never need to go back and see history
[15:40:22] <wdev> Trying to sort out the docs. Can somebody confirm or deny that if you do an rs.remove('someHiddenMember') with priority:0 it will force a master election (thus breaking writes)? Stuck on 2.0.1 for this set.
[18:54:09] <SeyelentEco> Anyone seen this error: threw away reply, please try again
[18:54:46] <SeyelentEco> only happens when connecting to a server on a different machine
[18:54:57] <gabbah> hi guys. I'm using play 2 and Salat to access mongodb. My issue is I'm not getting any sort of exception when I do a update operation with an objectId that does not exist. How can I find out if the update actually found an object to update at all?
[18:57:24] <crudson> gabbah: the mongodb docs on 'Updating' will tell you
[18:58:11] <gabbah> crudson, as far as i can see, the ONLY way is issuing a getLastError command AFTER... is that really the way? no exception?
[18:59:05] <gabbah> I can't get the update command to throw an exception (via Salat)?
[19:01:20] <SeyelentEco> FYI I figured it out. I was using persistent connections. Apparently that doesn't work?
[19:05:16] <crudson> gabbah: that's how it works. Or findAndModify will return null if it matched no doc for an update
[19:07:25] <gabbah> according to http://repo.novus.com/salat-presentation/#14 i'm supposed to get a result back actually, from Salat, informing me if it was updated
[19:12:49] <_m> gabbah: You must enable safe mode to get a return value. Otherwise, mongo is "fire and forget"
[19:13:49] <_m> Could be a bug in your driver then. Never heard of Salat, sorry.
[19:14:44] <crudson> gabbah: also be sure you're not doing an upsert
[19:14:48] <gabbah> ok it's a wrapper for mongodb for Play 2
[19:15:08] <gabbah> yeah it's not upsert.. that is set to false. Also checking the collection after shows no change
[19:39:31] <drudge> Hello. I'm having some issues doing bulk insertion with the mongodb node driver
[19:40:01] <drudge> I have an array of 107k docs I want to insert, however the insertion fails with: Document exceeds maximal allowed bson size of 16777216 bytes
[19:40:51] <drudge> the documents themselves are rather small, not sure why I'm getting the error
[19:51:34] <_m> You cannot insert more than 16 mb at a time.
[19:52:00] <_m> that's total documents or single document
[19:53:15] <_m> I generally batch in groups of 1,000.
[22:28:35] <manveru> how do you do an upsert on a sharded collection?
[22:29:43] <manveru> tried using the shard key only in the find argument, but the resulting doc has a key of "\u0010" for some strange reason
[22:30:30] <manveru> and if the doc exists already, mongo complains if i try to set it
[22:30:59] <manveru> pretty much similar to this: http://stackoverflow.com/questions/7005604/what-does-cant-modify-shard-keys-value-fieldid-for-collection-foo-foo-mean
[23:10:46] <crill> Hey, I'm trying to add an element an embedded document array of time series data and I'm not sure what the best way to do it is.
[23:16:47] <VooDooNOFX_> crill, can you give us an example, and possibly an example of the type of query you're looking to perform on it.
[23:19:48] <crill> VooDooNOFX_: sure (I'm very new to mongo). I have a document users = { "username" : "crill",
[23:21:29] <crill> I want to have a timeseries array representing how much money a user has
[23:22:53] <crill> I want to push values into that array { "timestamp" : <datetime>, "dollars" : 17 }
[23:24:12] <crill> I effectively want to have array that I can add to. I've read that capped collections would be a good choice, but I'll get there once I come up to speed
[23:40:13] <krispyjala> hi all, so there's no way to set read preference to say, in a nonsharded replica set for 2.2.0, if the primary is locked due to writing, then switch to secondary?
[23:41:06] <krispyjala> seems like primaryPreferred or secondaryPreferred just sets them to only access those, except for failovers