Misleading documentation

Hi,

since

https://vaadin.com/forum/thread/17850122/grid-lazyload-is-slow-vaadin-14

covers a different issue I created this one here to discuss the documentation.

According to

https://vaadin.com/docs/v14/flow/binding-data/tutorial-flow-data-provider.html#lazy-loading-data-from-a-backend-service

both DataProvider queries should honor query limit/offset:

        // Second callback fetches the number of items
        // for a query		

and

The results of the first and second callbacks must be symmetric, so that fetching all available items using the first callback returns the number of items indicated by the second callback.

If you impose any restrictions in the first callback, you must add the same restrictions for the second callback.

Shouldn’t that be removed and clarified? Shall I create a ticket?

Thanks

Regards

Second question: in the count query, why is there offset/limit? Matti wrote it should always return the total size of the dataset?

Thank you

Yes, please do create a ticket at https://github.com/vaadin/flow-and-components-documentation/issues/new

Done:
https://github.com/vaadin/flow-and-components-documentation/issues/1195

Thanks!