[Twisted-Python] Simplifying database access in Twisted
Clark C. Evans
cce at clarkevans.com
Fri Jun 20 12:22:05 MDT 2003
Thomas,
If you have *big* result sets which you have to
process incrementally, then you may want to look
at flow.py in the sandbox. It has a QueryIterator
that I use, essentially it executes the query in
a separate thread, and you can use generators to
write your data processing code.
When I get time, I intend to hook in postgresql's
async query library so that threads are not required.
Best,
Clark
More information about the Twisted-Python
mailing list