tursodatabase / tursodatabase/libsql-js

Query cancellation/timeout support

Open
#123 7 comments 0 reactions 1 assignee View on GitHub

@LucioFranco is already working on this.

Since Dec 16, 2024.

enhancement good first issue help wanted
Dominant language
JavaScript
Stars
335
Forks
48
Avg merge
3d 2h
Merged PRs (30d)
3

Description

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.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.