grafana / scenes

Build Grafana dashboards directly in your Grafana app plugins.
https://grafana.com/developers/scenes
Apache License 2.0
141 stars 21 forks source link

Performance: SceneDataTransformer always re-runs transformations on activate #717

Closed torkelo closed 6 months ago

torkelo commented 6 months ago

Transformations can be very slow (Especially if they involve parsing dates). Currently SceneDataTransformer does the transformations always on activate which can make going into panel edit and back very slow / sluggish for panels with slow transformations.

This problem can be found here: https://ops.grafana-ops.net/d/b08c039f-9708-4ff6-b62b-48508459be405/reduced-env-to-reproduce-23-87219?orgId=1&scenes&var-unitcost_per_1k=1.32&var-unitcost=0.00132&from=2023-10-31T00:00:00.000Z&to=2024-02-06T12:00:00.000Z

grafanabot commented 6 months ago

:rocket: Issue was released in v4.19.0 :rocket: