sqliteviz icon indicating copy to clipboard operation
sqliteviz copied to clipboard

Cancelling queries

Open lana-k opened this issue 3 years ago • 3 comments

lana-k avatar Apr 10 '21 16:04 lana-k

Any thoughts around this @lana-k ? Would really like to recover from the accidental large query.

twoxfh avatar Jun 17 '21 00:06 twoxfh

@twoxfh the problem here is when you terminate a web worker you lose your database. At least it is how I see it for now. Of course, we could warn the user like "if you cancel the query you will have to load your database again". But for me it is undesirable. So I want to make some research or something in order to find the best solution for this.

lana-k avatar Jun 17 '21 09:06 lana-k

I submitted an issue to sql-js, which has a very convoluted solution. As recognized in that issue, having an additional thread to call the interrupt really is the answer but likely not worth the effort at this point until greater browser compatibility.

twoxfh avatar Jun 21 '21 17:06 twoxfh