Is any performance advantage to do a scripted partial update for a nested field? The docs seem to indicate that "To update, add, or remove a nested object, we have to reindex the whole document". Other than sending a larger body, are there any performance advantages to performing a partial update?
Actually, the performance of using scripted update is worse If compared with just simply indexing. The reason is that a scripted update has an extra burden of loading and parsing the document and compiling and executing the update script.
You would use a scripted update because you need the custom update logic and not because of performance.
1 Like
This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.