-
Notifications
You must be signed in to change notification settings - Fork 25k
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
Index settings object is parsed on every document update #57395
Comments
Pinging @elastic/es-search (:Search/Mapping) |
It wouldn't feel great to me to treat this setting special. I'd prefer that we do something more general like parse once and cache the parsed and validated value internal to the |
I wonder why this isn't parsed in the IndexSettings ctor like other index settings? It seems like this should be a member there, then no parsing is necessary here. |
Agreed, a new member should be added that will be updated via settings consumer. |
There are several mapping settings that are currently re-parsed every time they are read. This can be quite frequent, for example within every document ingestion. This commit moves the parsed versions of these mapping settings to be stored in IndexSettings, just as other index settings are already. closes elastic#57395
There are several mapping settings that are currently re-parsed every time they are read. This can be quite frequent, for example within every document ingestion. This commit moves the parsed versions of these mapping settings to be stored in IndexSettings, just as other index settings are already. closes #57395
There are several mapping settings that are currently re-parsed every time they are read. This can be quite frequent, for example within every document ingestion. This commit moves the parsed versions of these mapping settings to be stored in IndexSettings, just as other index settings are already. closes #57395
The problem that I have with this approach is that it doesn’t work for index settings registered in X-Pack. |
Parsing index settings for every doc update is inefficient and redundant. Instead of parsing the settings object to get the
maxAllowedNumNestedDocs
, we could just get the cached value and change it via settings applier. Else, we could just get this once per shard bulk request.I saw close to 2% improvement in indexing throughput of nyc_taxis just by changing this on ES version 7.4.
The text was updated successfully, but these errors were encountered: