Performance: UI freezes when selecting Item with a very large list (>1000) in query editor
What happened?
When using the Zabbix data source in the panel query editor, if a selected host has a very large number of items (e.g., over 1000), clicking on the "Item" dropdown menu causes the entire Grafana UI to freeze. The browser's CPU usage spikes, and the page becomes unresponsive for a long time (sometimes over 30 seconds).
What did you expect to happen?
The UI should remain responsive. Ideally, it could handle the large list more gracefully, perhaps by:
Not loading the full list until the user starts typing.
Displaying a truncated list with a search prompt.
Virtually rendering the list so only visible items are in the DOM.
Did this work before?
V8.3.6
How do we reproduce it?
In a Grafana dashboard, create or edit a panel.
Select the Zabbix data source.
In the query editor, select a Group.
Select a Host that is known to have a very large number of items (e.g., > 1000 items).
Click on the "Item" dropdown selector.
Observe the UI freeze.
Is the bug inside a dashboard panel?
No response
Environment (with versions)?
Grafana version: 12.0.2
Zabbix Plugin version: 5.2.0
Grafana platform?
A package manager (APT, YUM, BREW, etc.)
Datasource(s)?
No response
Hi @xiaerdemao just to confirm - you don't experience this issue when running in Grafana v8.3.6 and believe it to be a regression?