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

Large results are slow #153

Closed
shamrin opened this issue May 4, 2024 · 2 comments
Closed

Large results are slow #153

shamrin opened this issue May 4, 2024 · 2 comments

Comments

@shamrin
Copy link

shamrin commented May 4, 2024

If the query result is large, I have to wait for the whole query to finish before I see anything.

In contrast, sqlite CLI streams such results to stdout. It is helpful because:

I would expect sqlite-web to do one of:

  1. stream results like CLI does
  2. output first 1000 without waiting for the rest and provide indication that it's not all
  3. output first 1000 without waiting for the rest and allow dynamic pagination on rows after 1000
@coleifer
Copy link
Owner

coleifer commented May 5, 2024

Yeah this would be a nice enhancement. We'd need to wrap the user query to add a LIMIT / OFFSET to support pagination, not sure if there are any ramifications there. Performance will largely depend on what indexes are available.

@coleifer
Copy link
Owner

coleifer commented May 5, 2024

Pagination and stuff is a little tricky since we have to use a POST (because some janky ass home automation software doesn't understand url-encoded newlines), but I think both the a) performance issue, and b) pagination should be resolved now. Please give it a try when you're able.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants