Skip to content

[Embeddable] embeddable schema cache#271959

Merged
nreese merged 2 commits into
elastic:mainfrom
nreese:cache_embeddable_schema
May 29, 2026
Merged

[Embeddable] embeddable schema cache#271959
nreese merged 2 commits into
elastic:mainfrom
nreese:cache_embeddable_schema

Conversation

@nreese
Copy link
Copy Markdown
Contributor

@nreese nreese commented May 29, 2026

Dashboard transforms call getTransforms for each panel in the dashboard. The current implementation of this function builds the embeddable schema on each call. This can put a lot of CPU and memory pressure on the Kibana server for large dashboards. Instead, embeddable schemas should only be created once.

@nreese
Copy link
Copy Markdown
Contributor Author

nreese commented May 29, 2026

/ci

@nreese nreese added release_note:skip Skip the PR/issue when compiling release notes backport:version Backport to applied version labels labels May 29, 2026
@kibanamachine
Copy link
Copy Markdown
Contributor

💛 Build succeeded, but was flaky

Failed CI Steps

Metrics [docs]

✅ unchanged

@nreese nreese marked this pull request as ready for review May 29, 2026 17:57
@nreese nreese requested a review from a team as a code owner May 29, 2026 17:57
@nreese nreese added the Team:Presentation Presentation Team for Dashboard, Input Controls, and Canvas t// label May 29, 2026
@infra-vault-gh-plugin-prod
Copy link
Copy Markdown

Pinging @elastic/kibana-presentation (Team:Presentation)

Copy link
Copy Markdown
Contributor

@ThomThomson ThomThomson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice clean local cache

@botelastic botelastic Bot added Feature:Drilldowns Embeddable panel Drilldowns Feature:Embedding Embedding content via iFrame labels May 29, 2026
@nreese nreese merged commit 660e108 into elastic:main May 29, 2026
113 checks passed
@kibanamachine
Copy link
Copy Markdown
Contributor

Starting backport for target branches: 9.4

https://github.com/elastic/kibana/actions/runs/26656853146

@kibanamachine
Copy link
Copy Markdown
Contributor

💚 All backports created successfully

Status Branch Result
9.4

Note: Successful backport PRs will be merged automatically after passing CI.

Questions ?

Please refer to the Backport tool documentation

kibanamachine added a commit that referenced this pull request May 29, 2026
# Backport

This will backport the following commits from `main` to `9.4`:
- [[Embeddable] embeddable schema cache
(#271959)](#271959)

<!--- Backport version: 9.6.6 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sorenlouv/backport)

<!--BACKPORT [{"author":{"name":"Nathan
Reese","email":"reese.nathan@elastic.co"},"sourceCommit":{"committedDate":"2026-05-29T19:08:40Z","message":"[Embeddable]
embeddable schema cache (#271959)\n\nDashboard transforms call
`getTransforms` for each panel in the\ndashboard. The current
implementation of this function builds the\nembeddable schema on each
call. This can put a lot of CPU and memory\npressure on the Kibana
server for large dashboards. Instead, embeddable\nschemas should only be
created
once.","sha":"660e108aba340fdf3fd93a0725981831da7dfb82","branchLabelMapping":{"^v9.5.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["Feature:Embedding","Team:Presentation","release_note:skip","Feature:Drilldowns","backport:version","Project:Dashboards
API","v9.5.0","v9.4.3"],"title":"[Embeddable] embeddable schema
cache","number":271959,"url":"https://github.com/elastic/kibana/pull/271959","mergeCommit":{"message":"[Embeddable]
embeddable schema cache (#271959)\n\nDashboard transforms call
`getTransforms` for each panel in the\ndashboard. The current
implementation of this function builds the\nembeddable schema on each
call. This can put a lot of CPU and memory\npressure on the Kibana
server for large dashboards. Instead, embeddable\nschemas should only be
created
once.","sha":"660e108aba340fdf3fd93a0725981831da7dfb82"}},"sourceBranch":"main","suggestedTargetBranches":["9.4"],"targetPullRequestStates":[{"branch":"main","label":"v9.5.0","branchLabelMappingKey":"^v9.5.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/271959","number":271959,"mergeCommit":{"message":"[Embeddable]
embeddable schema cache (#271959)\n\nDashboard transforms call
`getTransforms` for each panel in the\ndashboard. The current
implementation of this function builds the\nembeddable schema on each
call. This can put a lot of CPU and memory\npressure on the Kibana
server for large dashboards. Instead, embeddable\nschemas should only be
created
once.","sha":"660e108aba340fdf3fd93a0725981831da7dfb82"}},{"branch":"9.4","label":"v9.4.3","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->

Co-authored-by: Nathan Reese <reese.nathan@elastic.co>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport:version Backport to applied version labels Feature:Drilldowns Embeddable panel Drilldowns Feature:Embedding Embedding content via iFrame Project:Dashboards API release_note:skip Skip the PR/issue when compiling release notes Team:Presentation Presentation Team for Dashboard, Input Controls, and Canvas t// v9.4.2 v9.4.3 v9.5.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants