Conventions: Querying
ThrowIfQueryPageSizeIsNotSet
Since RavenDB 4.0 there is no limitation for the number of results returned for a single query by the server. The ThrowIfQueryPageSizeIsNotSet
convention decides whether RavenDB Client
should prevent from executing queries if their page size is not explicitly set.
Enabling this configuration at development stage can be useful to pinpoint all the possible performance bottlenecks.
store.getConventions().setThrowIfQueryPageSizeIsNotSet(true);