I'm trying to update my database using the TG scheduler but I end up
with many postgres 'idle in transaction' processes hanging around
until I kill TG, taking up quite a bit of memory.
I've tied this, as suggested in other threads, but it doesn't help:
from sqlobject.util.threadinglocal import local as threading_local
hub.threadingLocal = threading_local()
hub.begin()
[do my database writes]
hub.commit()
hub.end()
I've searched this list and the TG documentation but can't find a sure-
fire way to update the database using the TG scheduler.
I've looked at several working TG apps but can't find any with working
code that use the TG scheduler. Does anyone have an example I can see?
Thanks,
Rob
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---