What is a transaction isolation level?
A transaction isolation level controls how a transaction sees changes made by other transactions. It matters when other sessions read or write the same data at the same time.
What a transaction isolation level controls
Section titled “What a transaction isolation level controls”An application can read the same data more than once during a transaction. The isolation level determines whether those reads can see newly committed changes. The database also uses isolation rules to decide which concurrent operations can proceed together.
Isolation levels have database-specific behavior. A transaction conflict can require a retry. SQLSTATE explains how to identify the reported condition.
Example: a repeatable read
Section titled “Example: a repeatable read”For PostgreSQL, TableAI begins a table export with:
BEGIN TRANSACTION ISOLATION LEVEL REPEATABLE READ READ ONLY;This transaction reads from a consistent snapshot across export pages. Concurrent commits do not move that snapshot forward between page reads. The read-only clause prevents writes within this transaction.
This is an export transaction choice, not a setting applied to every query in TableAI. For your own transactions, use the syntax and isolation rules of your database in the SQL editor.
Related tasks
Section titled “Related tasks”See import and export data for file transfer steps and transfer failures for recovery. For conflicts involving a cycle of lock waits, see deadlocks.