[00:00:20] <hahuang65> TkTech: this means that if I have documents pointing to the document that was skipped, it could incorrectly be related to a document I'm not expecting it to be related to?
[00:01:36] <hahuang65> TkTech: no choice right? I'm writing a tool to export a clients objects in our sandbox environment to the production environment... it has to keep all the relations.
[00:04:41] <TkTech> hahuang65: If you're just copying it over then you shouldn't have _id collisions, no?
[00:04:56] <hahuang65> TkTech: well... no guarantee right
[00:05:35] <TkTech> Sorry, I'm a bit confused. Are you just copying a subset or the entire collection/db?
[00:06:46] <hahuang65> TkTech: I'm copying over a single object from one collection, and multiple objects from other collections that have a reference to that single object
[00:07:08] <hahuang65> so if that single object gets a collision, all the other objects from the other collections will be pointing to the correct ID, but not the expected object
[00:07:20] <hahuang65> i shouldn't say object, I should say Document
[00:08:40] <TkTech> I believe so. The odds of a collision are very low (see http://docs.mongodb.org/manual/core/object-id/ for their construction), but do you have anything you can use to make sure it's the right object?
[00:08:52] <TkTech> Any other field that should be identical between the object and the referenced object?
[00:09:09] <hahuang65> We haven't seen collisions yet... but there's a possibility, and we are pretty security sensitive so we can't risk it.
[15:08:55] <zarac> I'm getting an "unsupported projection option" error when using the following update update. First of all, what is a projection option? Second, is there an error list somewhere in the documentation? db.show.find({ name: "Person of Interest"}, { $set : { "source.id": "28768" } })
[15:10:04] <zarac> I found my misate (wrote find and not update). However, my questions still remain. (what is projection option? Is there an error list?)
[16:12:41] <fjay> if i am seeing high numbers of qr|qw and ar|aw in mongostat.. what does that mean? I am not seeing any mjaor locked %, idx miss or faults or anything else gross.. and this is at a much normal load than normal.
[16:12:51] <fjay> only big change is i added about 13 more mongos to my environment.
[17:20:40] <shmoon> i need to get documents on UNIQUE user_id, i want to get ALL fields. it doesnt matter, can choose random unique documents, how do i do it ?
[18:54:52] <FrankBullitt> I have a program outputting JSON and I want to mongoimport it. How do I format my JSON/configure mongo import so that mongoimport will import a timestamp field as a timestamp/date type?
[19:42:08] <jayant__> Hey guys, i am using mongoengine with django but the sessions aren't working even if i login i still get request.user as anonymous
[19:45:03] <tombee> Tobsn: Apologies, I'm new to using MongoDB. I think the problem might be that I followed some materials that use spring-data-mongodb, and the insert method on the MongoOperations interface doesn't throw any exceptions. D'oh.
[19:51:13] <tombee> Tobsn: Looks like it works, I set WriteConcern.SAFE on the MongoTemplate and now it throws an Exception that it couldn't insert. Brilliant.
[21:12:40] <tombee> Spring data's MongoDB integration seems to fall short in the case of doing updates. Have to revert to using the raw properties by the looks of it :(
[21:15:36] <bartzy> Derick: Hey, are you here by any chance ?
[21:16:10] <bartzy> or.. if anyone knows - ODMs for MongoDB in PHP - there aren't many choices, right ?
[21:16:26] <bartzy> There's a pretty abandoned and not so well documented project called Mandango.
[21:16:41] <bartzy> And there's Doctrine's MongoDB ODM - which seems awfully heavy and hard to use...
[21:18:50] <tombee> ron: you create the object, and then ask MongoOperations to insert it, without worrying about what the properties are named, and you can retrieve the object back through the find method that way also.
[21:19:16] <ron> look at Morphia or Jongo for alternatives.
[21:19:26] <tombee> ron: but when it comes to doing an update, you can't retrieve the record, update it and save it by the looks of it, you need to create a query and manipulate the properties in an Update object
[21:29:19] <Derick> (instead of wrapping and pulling all data into the php userland stuff)
[21:29:46] <bartzy> Derick: But what about mapping that data to a model object ?
[21:31:10] <Derick> bartzy: I don't see the point of that really
[21:33:24] <bartzy> Derick: Let's say you have a request where you need to get all the posts made by a specific user, and the comments.
[21:33:48] <bartzy> you just write the code for it in plain MongoDB driver, and then manipulate it ? And if you have a similar page - you're doing that again ?