I sometimes use explicit commits to log usage stats, which I want to
succeed even if the request later aborts. I use a separate database
connection not attached to the transaction. I tried to use pyramid_tm
commit multiple times but it seemed it could only be used once. So
you're supposed to use transaction.commint/abort followed immediately
by transaction.begin? That wasn't clear in the docs.
I've also used a custom transaction adapter to get a Redis session
attached to the transaction. Since Redis is non-transactinal, t saves
its pending work in the object, and on commit it writes it to the
database.
> To view this discussion on the web visit
https://groups.google.com/d/msgid/pylons-discuss/CAKdhhwENeR4239BK2cNYTudNn28-uiDTkWQX%3D4GhkqgwrwNG_g%40mail.gmail.com.
--
Mike Orr <
slugg...@gmail.com>