A transaction is committed inside a loop

tx0/sql:commit-in-looprecommendedwarningperformance/algorithmicdepth fastperformance

What it finds

A COMMIT inside a loop commits once per row: each commit forces a log write, so the loop runs far slower than one transaction, a failure halfway leaves half the work done, and in Oracle an open cursor over the changed table can fail with "snapshot too old".

From the rule's source, commit_in_loop.rs.

Turn it on, off or suppress it

The rule runs from the recommended tier up. To turn it on in a lower tier, give it a level in tx0.toml:

tx0.toml
[rules]
"tx0/sql:commit-in-loop" = "warning"

To keep one finding, suppress it with a reason: tx0 suppress ID --reason "..." writes the comment for it.

tx0 explain tx0/sql:commit-in-loop shows the same in the terminal. Found a false positive? Report it.