Skip to content
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

Consider adding an optional queuing utility for runs on a single connection #145

Open
jraymakers opened this issue Feb 8, 2025 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@jraymakers
Copy link
Contributor

The default behavior of DuckDB when a statement is run on a connection that has an actively-running statement is to interrupt the active statement. This can be surprising and undesirable in some scenarios. It might be helpful to add a utility that instead queues runs.

It may not be feasible to support this for advanced modes of running, such as streaming and pending results. But it shouldn't be too hard for simple materialized runs. Perhaps a way this could be exposed is a "QueuingConnection" wrapper around a connection that has a narrower interface (i.e. only methods of running that fully materialize the result).

@jraymakers jraymakers self-assigned this Feb 8, 2025
@jraymakers jraymakers added the enhancement New feature or request label Feb 8, 2025
@jraymakers jraymakers added this to the API Conveniences milestone Feb 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant