the allRows() method is the same as rows(), it just batches them up in a list instead of giving you an iterator the totalRows() count is an information from the server how many rows are stored in your view. You are likely querying with a param that filters them down from 70 to 2.
Thanks Martin for Help⌠I have tried your solution in my application but itâs not working, It is only returning a subset of records for me itâs 66 rows but in database I have more that 1000 records if I donât provide âkeysâ. But If I provide âkeysâ itâs only returning 66 records.
Do I have to configure view to return all rows at server side?
In database I have more than 1000 records are there, if I am not providing any filter itâs returning 66 rows and if I provide filter it is only returning 2 records.
If I run the view on Couchbase Console, it is showing me all records.
Do I need to configure some thing to pull all rows from a view?
did you make sure to publish the view and then access the published one from both SDK and UI? Development views can vary greatly in the data they return, only a published view will give you the right output on your complete dataset.
@daschl, When I am running view from console with âfull_set=trueâ , itâs giving all rows. But I am not able to pass this option from Java Client SDKâŚ
as noted in the other forum post, it seems you are running on development views. Publish your view into production, then the data set will be accurately returned.
@vinod how do the keys look like you are emitting and how does the view query generated look like? You can run toString() on it to see the http query URI and compare them.