vaadin / vaadin-combo-box-flow

Vaadin Flow Java API for vaadin/vaadin-combo-box Web Component
https://vaadin.com/components/vaadin-combo-box
Other
5 stars 9 forks source link

Combobox fetches large chunks of data when scrolling very fast #288

Closed edler-san closed 5 years ago

edler-san commented 5 years ago

A customer has a combobox backed by a large dataset - if he scrolls by dragging down the index indicator on the right the fetched data sets quickly grow in size slowing down the application.

In a way this is what I would expect since we are scrolling very, very fast. Now, obviously the backend takes a bit of time to fetch all that, stalling the application. However, the increase in the number of fetched items is probably too steep. A general cap on the number of items might be useful here. This also applies to every other component that fetches from a backend.

To give some perspective: I modified the Bakery application starter (Spring Boot) to create 300000 products and then scrolled through the list. The page sizes observed were 50, 50, 50, 2200, 49800, 163000.

TatuLund commented 5 years ago

Is this now fixed by https://github.com/vaadin/vaadin-combo-box/issues/825 ?

andytudor commented 5 years ago

Is this now fixed by vaadin/vaadin-combo-box#825 ?

No, is not fixed