libsql-js icon indicating copy to clipboard operation
libsql-js copied to clipboard

Query cancellation/timeout support

Open penberg opened this issue 1 year ago • 7 comments

If a query takes a long time, applications may want to cancel them either manually or via a timeout mechanism. We should be able to use the sqlite3_progress_handler() to implement this where SQLite periodically checks if it's OK to keep running. We would have to track the execution time of individual queries.

Depends on https://github.com/tursodatabase/libsql-js/issues/122 for infrastructure on query timing.

penberg avatar Jun 27 '24 05:06 penberg