[Twisted-Python] Simplifying database access in Twisted

Clark C. Evans cce at clarkevans.com
Fri Jun 20 14:22:05 EDT 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