Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Versioning: Add a new version_type parameter, with a new type - `external` #776
Add a new
When provided, by setting the
This means that async indexing as a result of operations done against the database can use the database versioning scheme and there is no need to maintain strict ordering in the async indexing process.
Or even the simple case of updating the db, and then indexing into elasticsearch is now simplified since if the indexing gets out of order, the external versioning can be used to make sure only the latest version is indexed.
Does versioning work on deletes by id? For an example with an external version number, you will only want to delete if the version number is less than that of the delete (i.e. assuming it is a timestamp). If it isn't, you want the delete to fail. Optimistic concurrency should work in deletes, not just updates.