Transactions transaction_savepoint_nested
Transactions benchmark · all Transactions queries
Representative SQL
Rendered in the benchmark’s native SQL with default parameters (no dialect translation available).
BEGIN TRANSACTION;INSERT INTO txn_orders VALUES (9600001, 1, 'O', 1000.0, DATE '1998-01-01', '5-LOW', 'Clerk#000000001', 0, 'outer_tx');SAVEPOINT sp1;INSERT INTO txn_orders VALUES (9600002, 2, 'O', 2000.0, DATE '1998-01-01', '5-LOW', 'Clerk#000000001', 0, 'inner_tx');SAVEPOINT sp2;INSERT INTO txn_orders VALUES (9600003, 3, 'O', 3000.0, DATE '1998-01-01', '5-LOW', 'Clerk#000000001', 0, 'innermost_tx');ROLLBACK TO SAVEPOINT sp2;COMMIT;Representative DataFrame
No DataFrame implementation is registered for this query.
Get the exact query for your run
The blocks above are representative. To get the precise statement a specific platform runs at a specific scale, substitute your own values:
from benchbox import TransactionPrimitives
bench = TransactionPrimitives(scale_factor=0.01) # your scale factorprint(bench.get_queries()['transaction_savepoint_nested'])Source
Query text: benchbox/core/transaction_primitives/operations.py