views:

849

answers:

4

In ruby, there are currently 3 ODM maintained:

What is your prefered and why ?

A: 

I am using MongoMapper. It good except it is little slow with Time conversions. And it loads all data as Array. MyCollection.all for example gives you huge array, not cursor.

while Mongoid says: - Optimized for use with extremely large datasets.

So I guess you could try MongoID if you need speed and have big recordsets.

Rubycut
The performance test inside MongoMapper is must quick than MongoID
shingara
+1  A: 

I can recommend MongoMapper, since it also works with rails3 (beta and master). I personally didn't try the other 2 mappers you mentioned, since MM works great in my workflow and the mailinglist is very active. Furthermore the codebase is really stable and the only issue is with rails3 master, so you should use fredwu's branch, which already includes fixes for the current rails3 master changes on form_for: http://github.com/fredwu/mongomapper.git

parasew
+1  A: 

I was trying MongoMapper, but I think I'll go with Mongoid, because after quick reading docs it seems to me somewhat easier. Plus, it's developed by guys from Hashrocket, so that's a good reason itself.

Vojto
+1  A: 

In my opinion it's hard to say which is better, if you have DataMapper experience you'll like MongoMapper, but if you used ActiveRecord, Mongoid it's your preferred choice. I believe all of them worths a try concerning the context where you want to use them.

kfl62