Open walterra opened 1 week ago
Pinging @elastic/ml-ui (:ml)
Fewer modules leads to a faster build time
id | before | after | diff |
---|---|---|---|
transform |
441 | 442 | +1 |
Total size of all lazy-loaded chunks that will be downloaded as the user navigates the app
id | before | after | diff |
---|---|---|---|
transform |
393.6KB | 393.4KB | -267.0B |
Size of the bundles that are downloaded on every page load. Target size is below 100kb
id | before | after | diff |
---|---|---|---|
transform |
18.8KB | 18.8KB | +70.0B |
To update your PR or re-run it, just comment with:
@elasticmachine merge upstream
cc @walterra
Summary
Part of #181603.
For some of the actions in the transform list we need to identify if there's a data view for the target index. The way we identified this was quite inefficient. We had poor caching in place and fetched info for all data views including fields — this can be quite expensive queries!
This update fixes the approach and switches to using
dataViews.getIdsWithTitle()
in combination withuseQuery()
to bring the caching in line with how we load and refresh the rest of the transform list.Before: Lots of field caps requests!
After: We do just 1
_search
request that gets the data view ids/titles:Checklist