cartridge-java icon indicating copy to clipboard operation
cartridge-java copied to clipboard

Support upsert_many CRUD operation

Open akudiyar opened this issue 2 years ago • 1 comments

Documentation:

  • https://github.com/tarantool/crud#upsert-many

Implementation of this feature will require introducing a new type, which will combine tuple and tuple operation together, like it is in the tarantool/crud API. The current implementation of upsert operation is not completely correct: it allows to specify a tuple or a tuple operation separately without any checks for consistency, which doesn't correspond to the tarantool/crud API, although this invariant isn't clearly articulated there. Therefore, when implementing this feature we will have to introduce a breaking change in the UpsertProxyOperation API. Fortunately, we can leave the upsert() public method signatures as is, and just add the corresponding checks there; but the batch upsertMany operation variant will have to expose some kind of a tuple+operation container.

akudiyar avatar Sep 14 '22 23:09 akudiyar

Need to double check do we wont to implement this operatoin in the driver.

dkasimovskiy avatar Sep 04 '23 15:09 dkasimovskiy