[01:26:50] <goldstar> AbuDhar: I can do this with other dbs, why doens't mongo offer the same functionality? Im not going to spend 20min spinning up a box just to test whether a pass works
[01:27:23] <AbuDhar> I am not sure what you mean :P
[08:38:55] <yauh> g'day - I'm inserting geojson data into MongoDB with a 2dsphere index. I noticed that even though I trimmed my coords to have only 4 decimal places the collection stores 17 places
[14:34:09] <d-snp> anyone know what could be the cause of that?
[14:52:48] <Cygn> {"$in":[{"regex":"Exfactory","flags":"i"} != {"$in":[/Exfactory/i]} but why?
[14:59:39] <jmeister> does anyone know if I call collMod to change an existing TTL index, does it rebuild the entire index or is it safe to run on a production environment?
[15:10:06] <jmeister> Bump - does anyone know if I call collMod to change an existing TTL index, does it rebuild the entire index or is it safe to run on a production environment?
[16:10:23] <muhammadn> oops sorry that is not the gist
[16:10:44] <muhammadn> correct gist is here for mongodb benchmark code in ruby: https://gist.github.com/muhammadn/b16a6b5d8396a3ee8283
[16:27:21] <android6011> does anyone have a schema they use for handling global address data?
[17:32:57] <deathanchor> anyone know if you can run profiler via a mongos?
[18:06:39] <deathanchor> ooo... is there an easy way to know which shard has a specific key without using sh.status({ verbose :1 })?
[18:07:23] <cheeser> out of curiosity, why would it matter?
[18:07:26] <deathanchor> ah, explain gives that info
[18:08:03] <deathanchor> just trying to find the right shard without scraping through sh.status() which cna be big
[18:08:08] <darius93> I have a question, what are the chances of there being two of the same uuid within a collection? I do slightly rely on the uuid but may just move away from that and into my own id system
[19:24:53] <whaley> darius93: +1 on ObjectId also. It has some other nice properties besides uniqueness - for instance, it contains a timestamp as a property, which completely obviates the need for a "created" field on your document
[19:25:54] <whaley> granted, that's in seconds and not millis... and probably won't work after the year 2038, but it's still a nice little value add
[20:00:35] <cheeser> right. because it's been known about since the 70s :D
[20:16:59] <devSeb> Hey mongo-folks! =) Learning mongodb since a while, with Node.js. Now I created a function using MongoClient that can drop a DB using db.dropDatabase() (not from shell, from a node.js app). I'm failing at creating a function that creates a new DB though. Any pointers on this? I can't find docs on using copyDatabase() except from the shell.
[20:21:15] <StephenLynx> creating a database that doesn't exist yest?
[20:21:19] <StephenLynx> mongo does that by itself.
[20:21:25] <StephenLynx> just open a connection to the database
[20:27:24] <cheeser> well, you have to write to it first. or run "show collections" (the listCollections command at least)
[20:32:25] <devSeb> StephenLynx: Exactly that, is what i mean. I know mongo works like that from the shell - will have a go for it!
[20:33:09] <StephenLynx> working with mongo using the node.js driver is pretty much the same as working with the terminal.
[20:33:21] <StephenLynx> except for callbacks and how you pass arguments to some functions.
[20:34:35] <devSeb> StephenLynx: I see... But there's no copyDatabase function I can access, then? Like in the shell with db.copyDatabase. I have to read and write manually?
[20:36:15] <devSeb> ok anyhing is helpful, so thanks!
[20:36:18] <StephenLynx> never had any need to use commands on an application that weren't implement.
[20:36:29] <StephenLynx> I assume most people wouldn't copy databases regularly.
[20:38:08] <devSeb> No... its just me trying to learn mongodb better. I'm trying to "reset" my dev db before unit tests... But maybe there's some smarter way of doing that?
[20:38:29] <StephenLynx> I wouldn't know, I don't even write tests.
[20:42:41] <devSeb> StephenLynx: Ok gonna read the Index intro right now...
[20:48:10] <devSeb> StephenLynx: thanks man, really appreciate it! Looking through more of your code too... And gonna read up on indexes now. bbl =)
[20:48:27] <macwinner> will an index on an attribute like an md5 hash have a significantly different performance or memory usage characteristic vs an index on ObjectId?
[21:03:53] <greyTEO> I know this goes against mongo but what is the best way to compare 2 collections?
[21:04:33] <greyTEO> In sql I could reverse join and get the difference.
[21:39:31] <macwinner> are these redundant indexes: userid_1 and testid_1_userid_1
[21:40:11] <macwinner> ie, if I drop userid_1 will anything that depended on it be optimized with testid_1_userid_1 ? or does the ordering matter?
[22:00:49] <kba> greyTEO: Do you want to get the intersection?
[22:27:46] <greyTEO> kba, I want to get the opposite
[22:41:40] <fxmulder> so I've added a new replica set member and I noticed it's created more data files for the database than on the replicas its replicating from, why might that be?
[22:48:52] <greyTEO> GothAlice, is the processId maditory for marrow task?
[23:14:14] <joannac> fxmulder: did you run the new member with smallfiles?
[23:16:30] <d-snp> ah I keep missing the cool people, or they dont think my question is cool enough :(
[23:50:24] <fxmulder> comparing the count from collection.stats() on the primary and the 'objects cloned so far from collection' count in the new replica's logs, this replica is going to be using a lot more disk space than the other replicas
[23:50:40] <d-snp> apparently its normal for them to take long and they should happen as part of normal things
[23:59:09] <d-snp> I'm not 100% certain on what kind of live compaction mongodb does, but it could be that if you run a compact after the restoration is done they'll be closer together