Client-side savedObject client: optimize bulk
get pooling
#82581
Labels
enhancement
New value added to drive a business result
Feature:Saved Objects
performance
Team:Core
Core services & architecture: plugins, logging, config, saved objects, http, ES client, i18n, etc
The client-side savedObject client is using a pooling mechanism for
get
operationskibana/src/core/public/saved_objects/saved_objects_client.ts
Lines 362 to 371 in d4b2a51
kibana/src/core/public/saved_objects/saved_objects_client.ts
Lines 162 to 167 in d4b2a51
When calling
client.get
multiple times with the sametype/id
tuple, the resultingbulkGet
that fires contains these duplicates.We should remove the dupes when calling the backend, and then optimize the logic to dispatch (copies of) the object to the
get
calls that requested the same object.The text was updated successfully, but these errors were encountered: