This takes the lock out of the transaction since releasing the lock before the transaction is committed does us no good.
The one caveat here is that in order for this to work we have to somehow lock the retrieval of the session id to a single mariadb session, otherwise the connection pool could switch sessions between the get and release lock and then the releasing of the lock would fail
This takes the lock out of the transaction since releasing the lock before the transaction is committed does us no good.
The one caveat here is that in order for this to work we have to somehow lock the retrieval of the session id to a single mariadb session, otherwise the connection pool could switch sessions between the get and release lock and then the releasing of the lock would fail