Skip to content

Prefetch custom labels when rendering config - #795

Merged
vincent-olivert-riera merged 1 commit into
line:masterfrom
hoangpn:feature/improve_render_config
Sep 30, 2026
Merged

vincent-olivert-riera merged 1 commit into
line:masterfrom
hoangpn:feature/improve_render_config

Conversation

@hoangpn

@hoangpn hoangpn commented Sep 30, 2026

Copy link
Copy Markdown
Contributor

The render_config() function iterates over the exporters. However, since custom labels are associated with Services and Projects, this can lead to multiple queries (the N+1 query problem), reducing performance. To address this, we've prefetched the custom labels for services and projects to avoid additional database queries for each exporter.

The render_config() function iterates over the exporters. However, since custom labels are
associated with Services and Projects, this can lead to multiple queries (the N+1 query
problem), reducing performance. To address this, we've prefetched the custom labels for services
and projects to avoid additional database queries for each exporter.
@hoangpn
hoangpn force-pushed the feature/improve_render_config branch from 8cf0868 to 9c285c0 Compare September 30, 2026 05:26
@vincent-olivert-riera
vincent-olivert-riera merged commit 824622e into line:master Sep 30, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants