Question about parallel updates

Hi team,

What is the expected behaviour if one client sends a batch request with the same document ID but different content?

Does Elasticsearch execute them in the order it received it, or does it do any deduplication?

Thank you

Yes, they will be executed in order without any deduplication. Be aware that frequent updates to the same document has, at least in the past (not sure whether this is still an issue), potential to led to performance problems and increased overhead. It is therefore generally better to deduplicate before the batch is sent.