-
Notifications
You must be signed in to change notification settings - Fork 8.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Embeddables] Excessive index-pattern SO access when loading a dashboard #90996
Comments
Pinging @elastic/kibana-app-services (Team:AppServices) |
@Dosant I took a look at the Perhaps someone from @elastic/kibana-core might have some insight into this behavior. |
I spoke to core about this and they say that this has to do with how individual embeddables are loading data. |
@mattkime is there something we can do for embeddables to optimize this behavior? I ask as someone who has never used/produced an embeddable, so I'm not aware of the challenges/tradeoffs. |
Same situation here, but yea, I would expect that some kind of throttle/debounce cache in front of the pattern fetching logic could help a lot here. FWIW, it's what we did on core's kibana/src/core/public/saved_objects/saved_objects_client.ts Lines 373 to 382 in 4584a8b
|
I spoke to my team about this and it sounds like this needs to be examined at the embeddable level. |
This issue is no longer valid. Currently, a number of fetching of the data view matches the XHR number. And for this same dashboard, it is 9 in total (7 find and 2 resolve) requests. Unfortunately, I wasn't able to trace what exact change fixed that because it might be some optimization in a single visualization type. Additionally, I checked what could be done on the embeddables plugin side and found nothing. The plugin indeed depends on the saved object plugin, but it only reexports the |
Kibana Version: master
Description:
While working on search sessions we were looking into audit logs to see how often we fetch/update search-session SO.
In a meantime, we noticed that when loading a sample dashboard the same index pattern is being fetched from es 64 times!
In this case, I have opened
[Logs] Web Traffic
and my logging configuration:
I am not sure what is causing such excessive fetching, especially as we recently significantly improved index-pattern fetching: #82153 #82603 . In the browser, there is seem like 5-10 fetches of the same index pattern from different visualizations, but I not even close to 64 that audit logs report.
This issue is very likely causing redundant load on kibana server and es with each dashboard load which we probably can reduce it.
I not sure if there is a similar situation in an older versions
The text was updated successfully, but these errors were encountered: