couchdb tips: All content tagged as couchdb tips in NoSQL databases and polyglot persistence
Except the case you are planning to offer your users a very bad experience, you’ll have to figure out a way to paginate through long collections. Using CouchDB is no different from any other storage, maybe it adds a bit of complexity:
CouchDB is a different beast, its aggressive use of indexes means that occasionally you loose some functionality that you’ve been accustomed to having in other persistence mechanisms, like the number of rows matching a query.
The following articles should get you up to speed on how to accomplish pagination while using CouchDB:
- ☞ CouchDB: The last mile (see “Paginate records in CouchDB” section)
- ☞ Jan Lehnardt explanation of the above quoted issue
- ☞ Paginating document with couchrest and will_paginate
And if you have a different solution, please share it with MyNoSQL readers!