Vaadin Grid and lazy size setting.

I have asked the same question on LazyQueryContainer forum, but did not get any reply so far.
Trying my chance here :slight_smile:

Vaadin Grid requires LazyQueryContainer to know the total number of objects before retrieving the objects.

Query implementations have @Override public int size() method. Grid calls this method to get the total number of objects to be displayed when container is set.

Size method requires the count and full table scan which is very costly in my case.

Instead of setting size immediately, I would like to change/update it in every loadItems call"@Override public List loadItems(int startIndex, int count) ".

What is the best way of notifying the container (and, eventually the Grid using that container) about the latest known size?

Is there any example of setting the size lazy as well?

Thank you in advance.
Turgos