Bulk Index with version or sequence number

Hello ,
In order to perform optimistic concurrency locking, we use version OR if_seq_no in UPDATE api .

from my understanding, the usual practice is we will have to GET the documents version from ElasticSearch.
and then used the returned version/if_seq_no number along with the UPDATE api call

That seems to work fine if we are updating 1 document.
What if we are doing Bulk index for a batch of 500 random documents, do we make 500 GET to retrieve the version/sequence_no for each of them to be used during the bulk insert operation
?
what is the common practice of using version/sequence_no in terms of bulk index to enforce optimistic concurrent locking

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