On Mon, Nov 21, 2011 at 03:06:41PM -0800, Nathan Stults wrote: > > On Fri, Nov 18, 2011 at 04:56:39PM -0800, Nathan wrote: > > > > As for the mongo storage, I would love to go through the code with > > you. I'm sure it could be made much better. I'm not sure how we would > > do it, but I'm very open to it any time you like. > > You don't mind if I give a try at it from scratch ? (So I can learn > MongoDB as I go).
Hello Nathan, here's my take on the ruote + MongoDB: https://github.com/jmettraux/ruote-mon It's using :safe => true and all the Mongoodness available. It's multi-worker safe. I wanted to have an idea of its relative speed, so I ran the whole functional test suite of the latest ruote (b66b34f) on Ruby 1.9.2p290. 2.4 GHz Intel Core 2 Duo, with 4GB (Macbook 2008), (3 tries each). Ruote::HashStorage 303 / 300 / 302 seconds Ruote::FsStorage 362 / 363 / 353 s Ruote::Redis::Storage 388 / 389 / 389 s (redis 2.2.12) Ruote::Mon::Storage 410 / 413 / 413 s (mongod 2.0.1) Ruote::Sequel::Storage 468 / 469 / 477 s (sequel 3.20.0 + pg 8.4.2) I don't know how it would fare in your test harness. I'm sorry, I have no result for ruote-mongodb, I've tried to run it (current master) two or three times, each time it got stuck after five or six tests. The code is minimal, I did some tiny adaptations to the ruote test/unit/storage.rb to accomodate for BSON hashes, but not much more. Maybe the #put method can be simplified. I didn't know MongoDB was so pleasant to work with. What do you think ? -- John Mettraux - http://lambda.io/processi -- you received this message because you are subscribed to the "ruote users" group. to post : send email to [email protected] to unsubscribe : send email to [email protected] more options : http://groups.google.com/group/openwferu-users?hl=en
