-
-
Notifications
You must be signed in to change notification settings - Fork 412
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
sqlite3_progress_handler for query timeouts #707
Comments
We are talking about multiple orders of magnitude here. If you kill a long running query after 1s timeout (that has been tightly consuming CPU and I/O), what is a nano second or even if it's a millisecond it takes to create a new thread compared to the 1000ms of timeout? Anyway, I think this could be a useful addition. But I wouldn't attach it to This means you can use |
Also please don't use https://stackoverflow.com/questions/46964779/monotonically-increasing-time-in-node-js Also why didn't you comment on #568 directly? We already concluded that Also I can't speak for Joshua 😄 |
Thanks for your input (and the Just throwing an extra idea, maybe a Sorry about the duplicate issue, you are right. I can close it and move the discussion there if you'd like. Thanks again |
Duplicate of #568 🤷♂️ |
Hello,
I am looking for a way to interrupt/timeout "long" running queries. I followed the discussion on #568 and it seems(?)
sqlite3_progress_handler
is the best way to go sincesqlite3_interrupt
will be difficult to work with in a synchronous setting and killing and restarting the whole processing thread might be too expensive to be usable.For example to cancel a query longer than 1s i was thinking of something like this:
Do you think something like this could work?
If so, would it be possible to add it (for a fee)?
Thanks a lot for your work!
The text was updated successfully, but these errors were encountered: