Re: Safely timing out DBI queries

2006-09-19 Thread Chuck Fox
I realize that this is very specific to the database, however, it may be possible to set a resource limit at the database level that will prevent the queries from consuming too much time. Chuck [EMAIL PROTECTED] wrote: On Sep 18, 2006, at 6:18 PM, Tyler MacDonald wrote: Dean Arnold [EMAIL

Re: Safely timing out DBI queries

2006-09-19 Thread Sam Tregar
On Tue, 19 Sep 2006 [EMAIL PROTECTED] wrote: And some drivers have a timeout parameter that handles this issue at the vendor API level (e.g. DBD::Sybase's timeout parameter that is handled internally by OpenClient). Good to know. I'm looking into adding something like this to MySQL, but

Re: Safely timing out DBI queries

2006-09-19 Thread michael . peppler
, dbi-dev Subject:Re: Safely timing out DBI queries I realize that this is very specific to the database, however, it may be possible to set a resource limit at the database level that will prevent the queries from consuming too much time. Chuck [EMAIL PROTECTED] wrote: On Sep 18, 2006

Re: Safely timing out DBI queries

2006-09-18 Thread Tim Bunce
On Sun, Sep 17, 2006 at 10:59:48AM -0700, Dean Arnold wrote: (I've added dbi-dev as this seems relevant) Tim Bunce wrote: On Sat, Sep 16, 2006 at 08:31:54PM -0400, Sam Tregar wrote: On Sat, 16 Sep 2006, Dean Arnold wrote: I think your best bet might be to work with the DBD::mysql

Re: Safely timing out DBI queries

2006-09-18 Thread Dean Arnold
Tim Bunce wrote: Which brings me back to the notion of non-blocking requests. Assuming many/most client libs do support an async capability, and a OOB cancel, then it should be possible to standardize the behavior externally. Attempting to standardize, let alone implement, non-blocking

Re: Safely timing out DBI queries

2006-09-18 Thread Tyler MacDonald
Dean Arnold [EMAIL PROTECTED] wrote: Which brings me back to the notion of non-blocking requests. Assuming many/most client libs do support an async capability, and a OOB cancel, then it should be possible to standardize the behavior externally. Attempting to standardize, let alone

Re: Safely timing out DBI queries

2006-09-18 Thread Henri Asseily
On Sep 18, 2006, at 6:18 PM, Tyler MacDonald wrote: Dean Arnold [EMAIL PROTECTED] wrote: Which brings me back to the notion of non-blocking requests. Assuming many/most client libs do support an async capability, and a OOB cancel, then it should be possible to standardize the behavior

Re: Safely timing out DBI queries

2006-09-18 Thread Tyler MacDonald
Henri Asseily [EMAIL PROTECTED] wrote: The problem is not to know when a request is done processing. The problem is killing requests that are processing for too long. If you want kill them safely, you may not be able to kill them until they're done, which defeats the purpose. If you kill

Re: Safely timing out DBI queries

2006-09-17 Thread Dean Arnold
(I've added dbi-dev as this seems relevant) Tim Bunce wrote: On Sat, Sep 16, 2006 at 08:31:54PM -0400, Sam Tregar wrote: On Sat, 16 Sep 2006, Dean Arnold wrote: I think your best bet might be to work with the DBD::mysql maintainers to implement some driver-specific nonblocking versions of