Tree Grid Lazy Loading Issue

Am using AbstractBackEndHierarchicalDataProvider and implemented the three methods getChildCount, hasChildren and fetchChildrenFromBackEnd. The tree grid shows the data correctly. When I select a big range of data example, 1 month or more lazy loading does not work and it takes long to give results.
Below is a print of these implemented two functions from the query parameter. Where could I be going wrong?
getChildCount--------------------------
pageRequest.getLimit()2147483647
pageRequest.getOffset()0
pageRequest.getPageSize()2147483647
pageRequest.getPage()0
fetchChildrenFromBackEnd--------------------------
pageRequest.getLimit()2
pageRequest.getOffset()0
pageRequest.getPageSize()2
pageRequest.getPage()0

service_method.txt (1.82 KB)

repository.txt (877 Bytes)

Too many backend requests by the component I assume. If you need lazy loading for TreeGrid, I suggest to use TreeTable (via in.virit:viritin) instead (the same but with better data binding API). Check this blog post: Lazy-loading hierarchical data from UI to database | Vaadin