DISQUS

A little place of calm: A little place of calm » Blog Archive » CouchDB on Rails (part 4 of ?)

  • Austin Putman · 1 year ago
    thanks for writing all this up -- this kind of work could lead to some cool dbstore patterns
  • WebDesignBoy · 3 months ago
    ha!
    I was thinking the same thing.
    also great post!
    thanks.
  • Rami Fawaz · 1 week ago
    So true alot of good will come from your share. thanks!
  • aimee · 1 year ago
    It is a pleasure.
  • Jan · 1 year ago
    Aimee, this is again, excellent, thanks for taking the time to write this, and keep it up!

    The find/view issue, in my opinion shows that AR is probably not the best model to use with CouchDB. I'm not saying it can't be made to work together, but I think we'd need to bend both parts to something they weren't designed to do. Why is that?

    The difference between CouchDB and an RDBMS (that AR is 'just' and object representation of) can be summed up as "RDBMS: Static data & dynamic queries vs CouchDB: Dynamic data & fixed queries". So providing dynamic queries is not exactly CouchDB's strength. This is not a bad thing though, you still can get all the info you need for your application out of CouchDB. Just in a different way. That makes AR probably not the first choice for an OO abstraction layer on top of CouchDB.

    To fix the API issues of ActiveCouch, see http://wiki.apache.org/couchdb/BreakingChanges for what has changed in CouchDB.

    Again, brilliant content, please continue!

    Cheers
    Jan
    --
  • SD · 1 year ago
    Great series of articles. You've hit a perfect balance between code examples and explanation which has really got me interested in investigating CouchDB. Thanks very much
  • aimee · 1 year ago
    @Jan ... Thank you for your encouragement, and it is really great to hear your opinions. I'm not particularly impressed with ActiveCouch and i don't want to be the one to fix its issues. I have a feeling the RelaxDB Merb plugin will prove to be much more flexible and more suited to CouchDB.

    @SD ... Thanks, it's lovely to hear your feedback. I'm glad to be getting other people interested in the Couch! :)
  • Jan · 1 year ago
    Jup, my comment definitely missed a "In case you want to fix AactiveCouch"... Sorry :-) (New ep tonight? :)
  • aimee · 1 year ago
    Yes, i'm getting on with some more CouchDB tonight. I feel i'm in a race with TopFunky to see if i can get my next part out before the PeepCode! :) Although i'm really very interested to see what Geoffrey has to say about CouchDB and Rails ...!
  • Geoffrey Grosenbach · 1 year ago
    Personally, I think some of these ActiveRecord-ish libraries are overkill. I wrote a simple 60-line wrapper for CouchRest that does most of what you need, and takes advantage of CouchDB's strengths (flexible schema, etc.)

    http://gist.github.com/10636
  • aimee · 1 year ago
    Excellent, thank you Geoffrey! I will take a look.

    I'm inclined to agree with you, but to get started i wanted something
    that feels familiar for me.
  • Arun Thampi · 1 year ago
    Hi Aimee - Just stumbled upon this blog post. I'm making changes to ActiveCouch this weekend to make it compatible with 0.8.x as well as more Rails-friendly (so a 'couchify' command which will automagically add config files for ActiveCouch to use in your Rails project, etc.)

    Been really busy at work, so haven't gotten a chance to catch up with CouchDB awesomeness.

    Stay tuned, though :)
  • aimee · 1 year ago
    Nice to hear from you, Arun. Good luck with the new updates - should be exciting! :)
  • Arun Thampi · 1 year ago
    Hi Aimee - Just an update, the master branch of ActiveCouch now supports 0.8.0 and upwards. I'm still working on the couchify command (as you may notice from the code) so please give it another go!

    Thanks for your feedback.

    Cheers,
    Arun
  • MoneyGuru · 2 months ago
    Yap it supports up.
  • aimee · 1 year ago
    Nice one, thanks for the update! :)
  • Arun Thampi · 1 year ago
    Hi Aimee - I've updated the ActiveCouch wiki where you can read about the latest changes to ActiveCouch and how it integrates much better with Ruby On Rails:

    http://mclovindoesruby.wordpress.com/2008/10/26...
  • Ariel Monaco · 10 months ago
    Aimee,

    Many many many thanks for these brillant posts.

    Ariel
  • aimee · 10 months ago
    Ariel, you are very welcome. I'm sure it's obvious that they are very much exploratory on my part, but i'm glad to know that they are of help to other people.
  • COCA · 6 months ago
    thanks for writing all this up
  • Chanel Sunglasses · 4 months ago
    I understand what you meant. You've managed to state the facts clearly and you explained it well. Thanks for your post!
  • IRS Bod · 3 months ago
    Aimee,

    Another great post. Always a pleasure to read them.

    Bod
  • simonly · 1 month ago
    I totally agree. Fantastic post yet again.
  • Buy Backlinks · 2 months ago
    This is great! Been trying to figure out the CouchDB on rails issue for quite some time. Thanks
  • payday loans · 1 month ago
    It is not uncommon to have to deal with several constant stores in a single application. A very common approach is to use a relational database that stores paths pointing to files that are stored in a file system.
    So you might think as CouchDB as a special "file system" for a special part of your data model.
    Also, in larger applications, multiple stores and complex physical architectures are quite common, so don't be shy of using more than one persistent store for your models.
    faxless payday loan
  • digital radio scanners · 3 weeks ago
    Great post.
    Thanks for the effort to write all this up.
    Seems easy enough to follow thanks to the great instructions.
    Great plugins
  • Neuseeland · 1 month ago
    I always had problems to get this right, however, your posts helped me to get an better understanding.
  • dave8291 · 1 month ago
    Great info here.. thanks for taking the time to write it all out in detail.
  • Referral Code Full Tilt Poker · 1 month ago
    That's some of the good ol' fashioned cobbled code I like to see! Fantastic job running with this project and keeping it going, I hope the rewards you reap are worth it. Cheers!
  • Craig · 1 month ago
    Thanks for all your exploration into this for us all and posting your experiences, I'm sure for people wanting the same things you want you are saving them a bunch of headaches. I'm going to continue on reading the rest of your entries!

    Craig - Full Tilt referral code
  • Club Penguin Cheats · 1 month ago
    I feel i'm in a race with TopFunky to see if i can get my next part out before the PeepCode! :) Although i'm really very interested to see what Geoffrey has to say about CouchDB and Rails!
  • Club Penguin Cheats · 1 month ago
    I feel i'm in a race with TopFunky to see if i can get my next part out before the PeepCode! :) Although i'm really very interested to see what Geoffrey has to say about CouchDB and Rails.
  • Treat Acne · 1 month ago
    Another great post. Always a pleasure to read them.
  • Jay @ work at home · 4 weeks ago
    Great job in your post here! I really have enjoyed reading this very much. will bookmark, thanks for sharing!