Re: [Twisted-Python] Twisted and db table changes

If you are using PostgreSQL you can use this technique http://www.divillo.com -------- Original Message -------- Subject: Re: [Twisted-Python] Twisted and db table changes From: Mark Visser <markv@lumierevfx.com> Date: Tue, September 29, 2009 12:04 pm To: Twisted general discussion <twisted-python@twistedmatrix.com> gary clark wrote:
Check out twisted.internet.task.LoopingCall. It will run a callback periodically, during which you can poll for changes. -- Mark Visser, Software Director Lumière VFX Email: markv@lumierevfx.com Phone: +1-514-316-1080 x3030 _______________________________________________ Twisted-Python mailing list Twisted-Python@twistedmatrix.com http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python

On Thu, Oct 1, 2009 at 4:27 PM, Steve <steve@divillo.com> wrote:
If you are using PostgreSQL you can use this technique
This is very interesting, thanks for sharing! However, whenever I see a Twisted program calling select()... especially select() in a thread ;-) I wonder if things couldn't be made a bit simpler, responsive, and performant by just asking the Twisted main loop to monitor the file descriptor instead. It looks like "psycho pig two" has the functionality that you need. (Are you planning to keep this technique described on the front of your website indefinitely? If not, a more durable link would be great :).)

On Thu, Oct 1, 2009 at 4:27 PM, Steve <steve@divillo.com> wrote:
If you are using PostgreSQL you can use this technique
This is very interesting, thanks for sharing! However, whenever I see a Twisted program calling select()... especially select() in a thread ;-) I wonder if things couldn't be made a bit simpler, responsive, and performant by just asking the Twisted main loop to monitor the file descriptor instead. It looks like "psycho pig two" has the functionality that you need. (Are you planning to keep this technique described on the front of your website indefinitely? If not, a more durable link would be great :).)
participants (2)
-
Glyph Lefkowitz
-
Steve