PMXBOT Log file Viewer

Help | Karma | Search:

#mongodb logs for Saturday the 9th of March, 2013

(Back to #mongodb overview) (Back to channel listing) (Animate logs)
[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:00:33] <TkTech> Yup
[00:00:42] <hahuang65> damn. Okay thanks. I'll have to check on my own then.
[00:00:44] <TkTech> (You really shouldn't use _id's for that)
[00:00:44] <hahuang65> Appreciate the help
[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:07:34] <TkTech> Ah
[00:07:39] <hahuang65> does that make sense?
[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.
[00:09:15] <hahuang65> TkTech: nope
[00:45:21] <mnml_> my gridfs is extremely slow after a mongodump / mongorestore on another server (single instance) is it normal ?
[00:46:11] <mnml_> after a few minutes the thing comes back to life
[01:20:31] <spidaman> is 3 seconds for average flush time a problem?
[02:34:42] <ron_frow_> ladies
[07:57:04] <columbo> is there a good pros vs cons on mongo vs relationaldbs?
[09:16:06] <crilly> columbo: Plenty of them.
[09:16:51] <columbo> crilly: would you recommend mongodb for a small SaaS
[09:17:01] <crilly> columbo: In my opinion NoSQL is perfect for anything that isn't transactional, such as processing payments.
[09:17:07] <crilly> columbo: Sure!
[09:17:24] <crilly> I would offer both MySQL and MongoDB/Cassandra
[09:18:25] <columbo> cassandra in lieu of mongo?
[09:19:46] <crilly> Either or, really. Which best suits your needs. Why not both?
[09:20:01] <crilly> If you're offering SaaS, offer flexbility and compatiability.
[09:21:06] <columbo> id like to offer stability cassandra sounds like it will fit the bill
[09:22:53] <crilly> Sure. Go for it. We've just bought ObjectRocket, so we will be offering MongoDB SaaS soon :)
[15:02:01] <zarac> Sup folks!? ; )
[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:09:06] <zarac> oops
[15:09:20] <zarac> strike that.. ; )
[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?)
[15:10:13] <zarac> s/misate/mistake
[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:06] <shmoon> excuse me
[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:01:33] <Derick> hello wilmoore-db
[19:01:58] <wilmoore-db> Derick: hey there :)
[19:41:24] <tombee> If I attempt to insert two different documents where the _id value is unique, what's the expected behaviour? :)
[19:41:36] <tombee> ugh, I mean.. the _id value is the same.
[19:41:56] <Tobsn> returns false
[19:42:03] <Tobsn> cant insert
[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:42:17] <jayant__> any help here?
[19:42:21] <Tobsn> jayant__, django problem :)
[19:42:28] <jayant__> :(
[19:42:38] <jayant__> i am stuck between here nd there
[19:43:05] <Tobsn> guess you need to start debugging
[19:43:12] <Tobsn> check if mongo is running
[19:43:20] <Tobsn> make sample script that connects the same way django connects
[19:43:21] <Tobsn> etc.
[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:45:20] <Tobsn> yep ;)
[19:45:39] <Tobsn> btw. anyone here with a US itunes account on osx? need something from the app store...
[19:47:17] <tombee> Tobsn: http://jonathan-whywecanthavenicethings.blogspot.ie/2011/11/wheres-my-exceptions-spring-data.html :D
[19:47:33] <tombee> Tobsn: Looks like you can change the level at which Exceptions are thrown?
[19:47:57] <Tobsn> oh, no idea
[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.
[19:51:22] <Tobsn> ah
[19:51:25] <Tobsn> it wasnt safe?
[19:51:31] <Tobsn> yeah then it doesnt know what happens on server side
[19:51:35] <Tobsn> so it just does nothing
[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:13:31] <ron> raw properties?
[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:20:57] <Derick> bartzy: I'm not a fan of ODMs
[21:21:04] <bartzy> Derick: Why not ?
[21:21:05] <Derick> I find them all heavy...
[21:21:19] <bartzy> Derick: How do you map mongo documents/data into your models then ?
[21:21:35] <Derick> by having a very thin layer in my app
[21:21:49] <bartzy> Derick: What does this layer does? Can you perhaps share it ?
[21:22:32] <Derick> it's app specific, nothing really something that's useful to share
[21:24:20] <bartzy> Derick: So if it's app specific, you build a new layer like this for each new app ?
[21:24:27] <bartzy> What does this layer consists of ? What does it expose ?
[21:29:02] <Derick> bartzy: it's basically a way to say "give me this data" as a method without exposing the query to the app
[21:29:08] <Derick> but it just returns a cursor
[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 ?
[21:39:59] <bartzy> Derick: ? :)
[21:41:07] <Derick> no, i have like a static method somewhere to do this
[21:41:40] <bartzy> and then if you need something slightly different from the same data you are coding a new method ?
[21:50:06] <Derick> bartzy: or something like that, yes
[21:50:20] <bartzy> :|