You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Batch upsert is mostly used for operation with
one bucket / one Tarantool node in a transaction.
In this case batch upsert is more efficient
then upserting tuple-by-tuple.
Right now CRUD cannot provide batch upsert with full consistency.
CRUD offers batch upsert with partial consistency. That means
that full consistency can be provided only on single replicaset
using `box` transactions.
Part of #193
*`space_name` (`string`) - name of the space to insert an object
540
+
*`tuples` / `objects` (`table`) - array of tuples/objects to insert
541
+
*`operations` (`table`) - update [operations](https://www.tarantool.io/en/doc/latest/reference/reference_lua/box_space/#box-space-update) if there is an existing tuple which matches the key fields of tuple
542
+
*`opts`:
543
+
*`timeout` (`?number`) - `vshard.call` timeout (in seconds)
544
+
*`fields` (`?table`) - field names for getting only a subset of fields
545
+
*`stop_on_error` (`?boolean`) - stop on a first error and report error
546
+
regarding the failed operation and error about what tuples were not
547
+
performed, default is `false`
548
+
*`rollback_on_error` (`?boolean`) - any failed operation will lead to
549
+
rollback on a storage, where the operation is failed, report error
550
+
about what tuples were rollback, default is `false`
551
+
552
+
Returns metadata and array of empty arrays, array of errors.
553
+
Error object can contain field `operation_data`.
554
+
555
+
This field can contain:
556
+
* tuple for which the error occurred;
557
+
* object with an incorrect format;
558
+
* tuple the operation on which was performed but
559
+
operation was rollback;
560
+
* tuple the operation on which was not performed
561
+
because operation was stopped by error.
562
+
563
+
Right now CRUD cannot provide batch upsert with full consistency.
564
+
CRUD offers batch upsert with partial consistency. That means
565
+
that full consistency can be provided only on single replicaset
0 commit comments