Skip to content

Conversation

@manadart
Copy link
Collaborator

There is no need to monitor the done status of Sqlair transactions. This is already done in the standard lib transaction implementation at a level where there is negligible performance benefit to adding the tracking at a layer above.

More importantly, a context cancellation automatically rolls back a transaction, which marks it done in the standard implementation, but of which Sqlair would be unaware. In such a case the work to track the status is made redundant.

Here we simply remove the tracking. The modified test asserts that the behaviour is effectively unchanged.

There is no need to monitor the done status of Sqlair transactions. This
is already done in the standard lib transaction implementation at a
level where there is negligible perfomance benefit.

Most importantly, a context cancellation automatically rolls back a
transaction, which marks it done in the standard implementation, but of
which Sqlair would be unaware.
@manadart manadart merged commit 20ce58d into canonical:main Nov 14, 2025
3 of 4 checks passed
@manadart manadart deleted the no-txn-done-tracking branch November 14, 2025 13:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants