Hi all,
A lot of my controller methods are read-only (apart from the identity
management), and yet a new transaction is being created for every
single page load at the moment.

I'm using SQLAlchemy and MySQL 5.1. There is a tantalizing mention of
unitofwork_transaction in the docs, and there was some talk about
transactional decorators a while back, but what's available to me
right now in the 1.0 TG branch?

I'm obtaining my SA session like so:

from turbogears.database import session
session.query(MyObj).count()
etc.

Is there a better way for me to get my hands on a session which gives
finer control?

Thanks a lot!
James
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/turbogears?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to