[09:57:10] <Petazz> Hi! Anyone using pymongo to drive Mongo? I'm having trouble inserting stuff coming from an angular front-end saying InvalidDocument: key '$oid' must not start with '$'
[09:57:36] <Petazz> What should the key name be then if not exactly what mongo is returning?
[09:58:26] <Petazz> I guess BSON specs say that a key cannot start with $?
[10:17:10] <jordana> Petazz: I haven't really used the python driver but to me it looks like you're doing an update on $oid or trying to insert a doc with $oid
[10:17:28] <jordana> which won't work, because anything prefixed with $ is reserved for mongo
[10:36:39] <jordana> You're getting an error with your update, I'm tring to figure out what query you're running to get the error so I can give you the query to update the document
[13:04:26] <Bittu> @cheeser: Is there any configuration, that I setup a separate Mongos to query on secondary replica only?
[13:05:01] <cheeser> you configure your client accordingly. the mongo uri supports the readPreference parameter in (hopefully) all the drivers
[13:05:34] <Bittu> yes, it's supported by Pymongo, I went through it
[13:05:51] <cheeser> you should read over the read preference docs, though: http://docs.mongodb.org/manual/applications/replication/
[13:06:03] <cheeser> there are some caveats you should be aware of before doing secondary reads
[13:06:35] <Bittu> okay....thanks to answer the question
[15:35:33] <asdf23sdfs> hey ive got a collection of 40 million documents, and i need to access only 10% of them much more regularly. should i create an index on a boolean field?
[15:36:12] <cheeser> is it only that 10% that'll be marked as true?
[15:38:49] <asdf23sdfs> so scanning 400 million to find the 40 million or so that have hashtags. looking for a faster way to do this.
[15:40:40] <saml> asdf23sdfs, doesn't 2.6 have sparse index?
[15:41:20] <asdf23sdfs> i think so. i'm new to mongodb. so i wasn't sure what the best way to do this. i haven't added this extra field yet, b/c i wasn't sure it was the best way to do it even.
[16:34:28] <mango_> I thought the configsvr is the right place, because it references the configdb as it's datapath
[16:53:20] <adamcom> mango_: if you are going to write to a config server, even with mongorestore, you should do it through the mongos
[16:54:10] <adamcom> when it restores to the config database, it will know that lives on the config servers, and anything written via the mongos to the config DB will be written to all 3
[17:08:29] <mango_> @adamcom - ok, I'll run the backup through mongos
[20:16:13] <bsmartt`> I would greatly appreciate the opinion of an experienced designer on thisschema/normalization design question. http://pastie.org/9537203
[20:27:59] <rfk> wondering about gridfs - has anyone written code to store the exact native filesystem representation of files in gridfs?
[20:28:28] <rfk> e.g. all the metadata that would be required to restore the file to its exact original state, like permissions etc
[20:48:02] <djMax> I have a replica set that I thought had a couple capped collections. Turns out not. disk is full, can't do anything. How do I wipe it without like re-imaging or reconfiguring the replica set?
[20:49:02] <cheeser> is dropping the collection acceptable?