|
|
Sponsor |
Re: [jira] Updated: (DERBY-31) Statement.setQueryTimeout() support.: msg#00327apache.db.derby.devel
Shreyas Kaushik (JIRA) wrote: > [ http://issues.apache.org/jira/browse/DERBY-31?page=history ] > > Shreyas Kaushik updated DERBY-31: > --------------------------------- > > Attachment: Derby-31.patch > > This is the patch for implementing setQueryTimeout() in EmbedStatement.java > . I clsoe the activation for the statement when the query times out so that > the query stops executing. I tested this by inserting data into a table > continuosly for about 12 hours and then doing a select * on it by setting the > time out to 1 sec. It worked fine by cancelling the statement execution when > the timeout happened. > I think a detailed explanation of what you believe cancel and setQueryTimeout functionality should be would be very useful. I'm not sure closing the activation actually results in the expected behaviour. I also think the timing should be centralized per database or per system, using java.util.Timer and TimerTask. With your implementation a Thread per statement will be created when using query timeouts. Creating threads is expensive in Java and there was a request against Cloudscape to create one background thread per system, rather than the current case of one per database. This is to handle the situation where there are hundreds or thousands of databases per system. Dan.
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: INTERSECT and EXCEPT Design, Jeffrey Lichtman |
|---|---|
| Next by Date: | Re: [jira] Updated: (DERBY-31) Statement.setQueryTimeout() support., Satheesh Bandaram |
| Previous by Thread: | [jira] Updated: (DERBY-31) Statement.setQueryTimeout() support., Shreyas Kaushik (JIRA) |
| Next by Thread: | Re: [jira] Updated: (DERBY-31) Statement.setQueryTimeout() support., Shreyas Kaushik |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
Free MagazinesCisco NewsReceive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business. subscribe Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field. subscribe The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business. subscribe Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company. subscribe Total Telecom Total Telecom is "The Economist of the communications industry". subscribe |
Home | sitemap
| advertise | OSDir is
an inevitable website.
|