All Products
Search
Document Center

Tablestore:Operations on local transactions

Last Updated:Dec 31, 2024

After you enable the local transaction feature for a data table, you can create a local transaction based on the specified partition key value and perform read and write operations on the data in the local transaction. This topic describes the API operations that you can call to perform operations on local transactions.

API operations

The following table describes the API operations that you can call to perform operations on local transactions.

Item

API

Description

Create a local transaction

StartLocalTransaction

You can create a local transaction for data that shares the same partition key value.

Commit a local transaction

CommitTransaction

After you perform read and write operations on the data within a local transaction, you can commit the local transaction to save the data modifications.

Abort a local transaction

AbortTransaction

After you perform read and write operations on the data within a local transaction, you can abort the local transaction or wait until the local transaction times out if you do not want to save the data modifications.