flow-components icon indicating copy to clipboard operation
flow-components copied to clipboard

Vaadin ComboBox: No way to define value change timeout to optimize DataProvider load

Open jbreitung opened this issue 4 years ago • 3 comments

The current version of the Vaadin ComboBox does not have an option to define a value change timeout like it is possible in the TextField component.

The value change timeout would be a very efficient option to reduce the amount executed queries by the underlaying data provider of the ComboBox.

For example: If you have a ComboBox with a DataProvider connected to a large database, you do not really want to execute complex search queries on it right after every single character entered by the user. If there would be an option to define a value change timeout (e.g. 1s) the amount of executed queries will be heavily reduce and the ComboBox overlay will behave more fluent.

jbreitung avatar Feb 10 '21 07:02 jbreitung

Created https://github.com/vaadin/vaadin-combo-box/issues/998 for adding a hardcoded debounce to CB data request.

Leaving this open as an enhancement for making that configurable.

rolfsmeds avatar Feb 11 '21 12:02 rolfsmeds

The issue referenced above was transferred here: https://github.com/vaadin/web-components/issues/518

web-padawan avatar May 20 '21 14:05 web-padawan

The current version of the Vaadin ComboBox does not have an option to define a value change timeout like it is possible in the TextField component.

The value change timeout would be a very efficient option to reduce the amount executed queries by the underlaying data provider of the ComboBox.

For example: If you have a ComboBox with a DataProvider connected to a large database, you do not really want to execute complex search queries on it right after every single character entered by the user. If there would be an option to define a value change timeout (e.g. 1s) the amount of executed queries will be heavily reduce and the ComboBox overlay will behave more fluent.

Maybe this will help you - https://github.com/vaadin/flow-components/issues/6863#issuecomment-2672676668

Aleksey2093 avatar Feb 20 '25 21:02 Aleksey2093