Transactions transaction_long_running_mixed
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_ordersSELECT 9960000 + n, 1, 'O', 1000.0 * n, DATE '1998-01-01', '5-LOW', 'Clerk#000000001', 0, 'long_tx'FROM (SELECT unnest(generate_series(1, 100)) AS n) t;UPDATE txn_orders SET o_totalprice = o_totalprice * 1.05 WHERE o_orderkey BETWEEN 9960001 AND 9960050;DELETE FROM txn_orders WHERE o_orderkey BETWEEN 9960051 AND 9960100;INSERT INTO txn_ordersSELECT 9960100 + n, 2, 'O', 2000.0 * n, DATE '1998-01-02', '1-URGENT', 'Clerk#000000002', 0, 'long_tx_2'FROM (SELECT unnest(generate_series(1, 50)) AS n) t;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_long_running_mixed'])Source
Query text: benchbox/core/transaction_primitives/operations.py