Transaction mode: default | Tarantool
Документация на русском языке
поддерживается сообществом
Concepts Транзакции Transaction mode: default

Transaction mode: default

By default, Tarantool does not allow «yielding» inside a memtx transaction and the transaction manager is disabled. This allows fast atomic transactions without conflicts, but brings some limitations:

  • You cannot use interactive transactions.
  • Any fiber yield leads to the abort of a transaction.
  • All changes are made immediately, but in the event of a yield or error, the transaction is rolled back, including the return of the previous data.

To learn how to enable yielding inside a memtx transaction, see Transaction mode: MVCC.

To switch back to the default mode, disable the transaction manager:

box.cfg { memtx_use_mvcc_engine = false }
Нашли ответ на свой вопрос?
Обратная связь