I have the followed scenario: I am running a paginated query and I get some results, I addition I want to know how much total will I have at the end.
Any idea?
I have the followed scenario: I am running a paginated query and I get some results, I addition I want to know how much total will I have at the end.
Any idea?
Hey, can you please clarify a bit further? Do you paginate over a reduced function? Or one with just a map.
Currently, there is no easy way to find out, but you can paginate until the end and increment a counter towards the end.
What I do is 2 queries, on the same view one for each page and one more that return only the count.
Can you try the newly released 1.4.0-dp?
It has getTotalRows() on the ViewResponse which should do what you want! http://blog.couchbase.com/couchbase-java-sdk-140-new-and-noteworthy