Transactions transaction_with_cte
Transactions benchmark · all Transactions queries
Representative SQL
Rendered in the benchmark’s native SQL with default parameters (no dialect translation available).
BEGIN TRANSACTION;WITH order_data AS ( SELECT 9990000 + n AS o_orderkey, 1 AS o_custkey, 'O' AS o_orderstatus, 1000.0 * n AS o_totalprice, DATE '1998-01-01' AS o_orderdate, '5-LOW' AS o_orderpriority, 'Clerk#000000001' AS o_clerk, 0 AS o_shippriority, 'cte_test' AS o_comment FROM (SELECT unnest(generate_series(1, 10)) AS n) t)INSERT INTO txn_orders SELECT * FROM order_data;UPDATE txn_orders SET o_totalprice = o_totalprice * 2 WHERE o_orderkey BETWEEN 9990001 AND 9990010;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_with_cte'])Source
Query text: benchbox/core/transaction_primitives/operations.py