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