Transactions using models are not possible
After moving to models, code that could use transactions (like mass deletes) while deleting data can't anymore, as models basically merge behavior with actual I/O, and use the app connection pool where possible.
Solution 1 would be adding a conn=
keyword argument to File.delete
and Shorten.delete
, which does solve the issue, but I feel this is a design issue, as you might want to have transactions happen with updates, for example.
Tagged as 3.1 as it isn't urgent.