[00:24:53] <crudson> maybe some bools or something, but for anything except the simplest examples, you need to use json, or save the documents directly without mongoimport
[00:53:41] <runT1ME> can someone help me with a query for a nested element?
[01:11:41] <crudson> create a paste and if someone can help you they will
[14:15:30] <fission6> i am trying to start mongo but it keeps saying my dbpath doesn't exist
[14:15:54] <fission6> which makes sense since it doesn't /data/db/ but i have no idea what it is
[14:22:38] <fission6> weird it doesn;t seem to be using the settings i have in mongodb.conf
[14:30:38] <NodeX> make sure the init.d file is reading the correct config file
[14:34:10] <NodeX> site RElaunched : http://www.theukjobsite.co.uk/ ... massive thanks to 10gen for a great product and getting 2.2 out in time for the launch. Full Mongo based job board on a fully mongo based CMS
[14:51:48] <Neptu> hej Im using python driver and I have to insert 97000 json in a batch anyone knows if i should do it with save?
[14:56:03] <NodeX> save is a helper for upsert() in reality ... not sure if it's the same in python but i would guess it is
[15:07:07] <Neptu> "object does not support item assignment" do you know what causes this error?
[15:54:07] <Gargoyle> MongoDB can't count! Results of looping over a cursor altering the items:- 591920 of 314526
[16:11:25] <Neptu> Gargoyle: yep it came natural for me write length not count...
[16:34:01] <bizzle> What do you guys think about ORMs? I was gonna try using one for my next project, but I don't really see the benefit
[16:34:34] <bizzle> it saves you some boiler plate at the start, but if you care about the project scaling, it seems like they would be a huge inhibitor, and they are less flexible
[16:35:37] <ppetermann> not getting your question. mongodb is not relational so what you want with object relational mapping?
[16:36:32] <bizzle> haha, good point. What do you call them with mongodb then?
[16:37:05] <bizzle> whatever the layer is that maps DBObjects your native objects
[16:37:55] <bizzle> Do you guys find that they are a good choice for projects where you intend to scale?
[16:37:57] <ppetermann> well thats a few very basic classes in my case which doesnt add much to it, since most of an object can be stored into mongo anyways
[16:38:18] <ppetermann> to me document = object, sort of
[16:38:41] <ppetermann> so yes its definately worth it
[16:38:59] <bizzle> thats kindof what I was thinking. Your benefit was much greater with sql
[16:39:12] <bizzle> you say its definitely worth it to use the driver?
[16:39:13] <ppetermann> and if only because i prefer $object->save(); over $databasestuff->save($object)
[16:39:17] <kali> bizzle: i don't see the scalability issue with odms
[16:39:40] <kali> bizzle: and if you try to do mongo with a statically typed language without odm, you will feel your pain
[16:43:12] <bizzle> But what about optimizing your queries and stuff?
[16:46:24] <kali> bizzle: have a look at salat, then
[16:46:44] <kali> bizzle: il will save you a lot of ugly asInstanceOf[] or getAs[]
[16:46:52] <bizzle> Yeah, i have been, but I am worried about flexibility
[16:47:17] <kali> bizzle: it just handles the dbobject - case class mapping
[16:47:26] <kali> bizzle: not trying to write queries for you
[16:47:46] <kali> bizzle: and you don't have to use it all the time
[16:48:40] <bizzle> But if you just want to recieve a small subset of info, then you need everything to be in Options right?
[16:48:52] <bizzle> like all your constructor arguments
[16:50:28] <kali> bizzle: well, you can define an ad-hoc case class for a given situation if you like, as it's so easy (not very dry, but not worse than having docuemnt key all over the place)
[16:50:45] <kali> bizzle: option are for optional properties
[16:55:04] <bizzle> what kind of projects have you used salat on?
[16:58:14] <bizzle> haha, about salat, no complains?
[16:59:11] <kali> not much, realy. one big limitation is the fact case class are limited to 21 fields (but this is scala limitation, not a salat limitation)
[16:59:23] <kali> i have one instance of a document where it is an issue