vaadin / vaadin/framework

Request created for backend are inefficient and really difficult when doing lazy loading with Grid

Open
#8,982 9 comments 6 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
Java
Stars
1.8k
Forks
717
Avg merge
2d 6h
Merged PRs (30d)
3

Description

Vaadin version: 8.0.5

Grid requests same rows multiple times. This log is from a simple test app that fits 17 rows on the initial screen, then scrolled down. The backend has 100 rows in total. First three requests to the backend comes without scrolling, rest while scrolling down:

Request: offset 0 	 limit40 
Request: offset 40 	 limit50 
Request: offset 50 	 limit40 
Request: offset 80 	 limit19 
Request: offset 95 	 limit5 

Reproducible with this:
https://github.com/mstahv/lazy-loading-spring-demo/tree/bugreport (note, no mysql needed for this special branch)

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the linked lazy-loading-spring-demo bugreport branch and reproduce the logged request sequence while scrolling a 100-row dataset. Trace the Grid lazy-loading request path; done means avoiding repeated or inefficient row requests without breaking initial rendering or scrolling.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
backend, frontend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.