CouchDB - Top 10 Tips

Wednesday, 17 February 2010

  1. Read the book!! (can't emphasise this enough)
  2. Forget about trying to link documents together like tables
  3. Use the JSON hierarchy to define how bits of information are connected within documents
  4. Don't think about each document being a row on table
  5. Use a MapReduce to get the data out in the way you want
  6. Use keys in a MapReduce for sorting
  7. If you need key on something other than the uuid write a MapReduce for it
  8. Don't worry about putting too much into a Document because a quick MapReduce will just pull it all out for you
  9. Use a plugin like CouchRest-Rails which doesn't pretend CouchDB is a relational database
  10. Spend as long as you can designing and tweaking the structure of your documents
blog comments powered by Disqus