Replace document vs update document

Ill have documents which contain json ex: {id:100, usersIds: [1,2,54]}
Ill need to update userIds adding some new ids and removing some exist ids
My question is it better to replace the whole document or do update operation on the document?
We are talking about document size 50MB and will have 70K doc on the cluster

1 Like

I suspect it may make much difference as when you update a document in Elasticsearch the whole document is reindexed.

1 Like

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.