[03:51:54] <macUzer> how do I reach into the JSON structure to retrieve other fileds in arrays when using mongoexport's -f option?
[04:25:57] <Jeffrey_> Hey. I am currently loading up 2.7gb of CSV files to mongo and I am having some weird write degradation. At first I was inserting at around 100ms for each insert, and now after loading about 1.5gb I am at 26 seconds. Anyone see anything like this?
[04:26:08] <Jeffrey_> Looking at mongostat the lock % is at 0 most of the time.
[04:26:15] <Jeffrey_> And I am running a OCZ vertex 4 SSD.
[04:27:29] <Jeffrey_> And mongod is pegged at 100%
[10:28:04] <_johnny> hi, i have set up a collection with documents like: {prop1: .., prop2: ..., chapters:[{chapter_id: .., start: 0, end: 1}]}. with a named index of chapeters.chapter_id, and for chapters.start and .end. so appending is easy with $push. i'm wondering, can i use $pull to removed based solely on chapters.chapter_id, or do i need to recreate the entire object (with id, start and end)?
[10:37:02] <mids> _johnny: $pull should work, tried it?
[18:15:44] <_johnny> mids: thanks. i've written up an example of a doc here http://pastebin.com/mubuuYmW
[18:16:38] <_johnny> my pull command runs and "matches" 1 row (as it should, but that's just the find criteria hehe), but nothing is changed. the document is identical before and after
[18:20:55] <_johnny> hmm. i mean, yes i can see that it isn't a array in the regular js sense, but that format might be the tool i use to view it (rockmongo). the actual query which adds to it (and produced that output) uses $push
[18:23:27] <_johnny> http://www.mongodb.org/display/DOCS/Updating#Updating-%24pull hmm, is this suppose to be read as that i need to provide the "chapter" as a value here? that would mean that i had to supply not just chapters.chapter_id, but also the start, end, and name property
[18:26:52] <dstorrs> I don't want to miss some key option that would have made a big difference
[18:27:50] <_johnny> kali mids: thank you guys so much! :)
[18:38:45] <mids> dstorrs: what kind of setup are you planning? replica sets? sharding?
[20:12:39] <__neilg> i have a primary-secondary-secondary repl set configured. I rs.initiate()ed the primary, and the two secondaries are no in RECOVERING. All machined are on a gigabit LAN, but are syncing at about 5k/s. What am I doing wrong?
[21:20:05] <spillere> I run the query db.dataz.find({"username": 'dansku'}, {"photos.file_folder": "zc2gjq0vfi"}) and the result is ->> { "_id" : ObjectId("4fe7742b99883608e2000000"), "photos" : [ { "file_folder" : "zc2gjq0vfi" }, { "file_folder" : "3zi17o4r6l" } ] }
[21:20:22] <wereHamster> spillere: in the console?
[21:40:59] <spillere> i'm new with mongodb, those find's are not 100% on my head :)
[21:41:10] <wereHamster> it means: find all documents where username=dansku (and in the matching documents only include fields which have "photos.file_folder"="zc2gjq0vfi".
[21:41:47] <wereHamster> for documents which don't have that field, mongo will return the whole document
[23:45:59] <jribeiro> Hi all!! I'm starting with mongo and was wondering if anyone could help me out on this or point me to some good documentation... http://stackoverflow.com/questions/11181810/mongo-db-mapreduce-in-php