psequel icon indicating copy to clipboard operation
psequel copied to clipboard

Cancel or kill a long-running query?

Open kkuchta opened this issue 11 years ago • 11 comments

Forgive me if this already exists, but I can't seem to find any way to kill a long-running query. If I accidentally run a query that'll take 20 minutes to complete, is there any way to kill it before it finishes?

If not, I would strongly request such a feature. Messing with queries to improve their performance is one of the main use cases I have for any SQL GUI tool, and that often results in long-running queries.

Besides that, though, this is a great tool and I really appreciate that you've built such a great thing. Thanks!

kkuchta avatar Apr 28 '15 21:04 kkuchta

+1

ofirbb avatar Jul 12 '15 07:07 ofirbb

+1

bwheeler96 avatar Aug 19 '15 19:08 bwheeler96

+1

jayshepherd avatar Aug 31 '15 03:08 jayshepherd

+1

kowalcj0 avatar Oct 14 '15 10:10 kowalcj0

V1.2.7 add a preference for setting query timeout. If a query takes more than the specified number of seconds to complete, it will get cancelled automatically. In future, I'll add UI for canceling a query manually.

psequel avatar Oct 18 '15 05:10 psequel

Awesome! The UI for canceling would be preferable, but the preference goes a long way towards solving this use case for me. Thanks!

kkuchta avatar Oct 18 '15 18:10 kkuchta

nice thanks! (might be still nice to add them to the dropdown query history even if they timeout, but that's a separate issue I suppose).

rdp avatar Oct 19 '15 18:10 rdp

@psequel please add this. It seems like such a core feature to dealing with any kind of database queries. A running query blocks the whole UI. So while I'm waiting for however many seconds, I can't amend my query for the next running or copy the text.

theronic avatar May 12 '16 10:05 theronic

Yes a cancel button on the "running query" dialog would be nice. In my perfect world it wouldn't (by default) timeout queries, but instead just prompt, after a timeout "this is taking forever, cancel?" for the case of queries that genuinely need to use more than the setting, FWIW.

rdp avatar Jun 30 '16 15:06 rdp

Are we going to have this? :shipit:

vinibrsl avatar Jun 07 '18 12:06 vinibrsl

Any update?

mdorda avatar Oct 31 '18 10:10 mdorda