Saved Objects should reduce the migrationVersion
field count
#70815
Labels
Feature:Saved Objects
Team:Core
Core services & architecture: plugins, logging, config, saved objects, http, ES client, i18n, etc
v8.0.0
Related to #43673
The Saved Objects
migrationVersion
object field used for Saved Object migrations adds a dynamic mapping to detect outdated documents:kibana/src/core/server/saved_objects/migrations/core/build_active_mappings.ts
Lines 132 to 137 in 61a69f3
This mapping definition can add as many as
2*Saved Object Type Count
or ~114 fields. This can be reduced in two ways:1*Saved Object Type Count
kibana/src/core/server/saved_objects/migrations/core/elastic_index.ts
Lines 170 to 186 in bf04235
migrationVersion
could be changed to a single field and the query could limit results to the saved object type and amigrationVersion
field which doesn't match the current version (maybe we can leverage SEMVER fields if available WIP First draft for version field elasticsearch#58256)The text was updated successfully, but these errors were encountered: