Reputation: 3225
When querying documents in a view, is there a limit to the number of documents that is shown if limit
parameter is not mentioned?
This link does say that Columns can be a list of values, there is no set limit to the number of values or amount of data that columns can hold.
But not sure if it means we can put any number as limit or by default it has no limits. I just want to know if by default when the limit parameter is not mentioned, is there any limit to the number of outputted docs?
Upvotes: 1
Views: 5524
Reputation: 3501
As an update to others landing here in 2022: Default limit is 25 for find.
see: https://docs.couchdb.org/en/3.2.0/api/database/find.html
limit (number) – Maximum number of results returned. Default is 25. Optional
Note: any old API not providing a limit like js:Number.MAX_VALUE
will cap at 25 - sorting and limiting afterwards will give strange results.
Upvotes: 2
Reputation: 28439
In CouchDB, the default behavior for a view is to return all results, so you must specify a limit
parameter if you want to do some sort of pagination or return a subset of the data.
Upvotes: 5