Thursday, October 3, 2013

Pagination with Couchbase

0 comments

If you have to deal with a large number of documents when doing queries against a Couchbase cluster it is important to use pagination to get rows by page. You can find some information in the documentation in the chapter "Pagination", but I want to go in more details and sample code in this article.

For this example I will start by creating a simple view based on the beer-sample dataset, the view is used to find brewery by country:

function (doc, meta) {  if (doc.type == "brewery" && doc.country){   emit(doc.country);  } }

read more here 

Leave a Reply

 
All Tech News IN © 2011 DheTemplate.com & Main Blogger .