-
Notifications
You must be signed in to change notification settings - Fork 31
Description
Hello DuckDB UI Team,
For some of the queries that can potentially return a large number of records. It would be nice to show the results in pages where the maximum number of results displayed per page should be something controllable (with a suitable default, let's say 50) set globally for the session from the UI (or from the CLI using one of the SET
statements).
Currently not having this significantly slows down the cell execution - probably not because of duckdb
backend query execution but because the results need to be transported to the frontend.
Conceptual solution - You could internally use the rowid
of the final result, assign a "page number" to each row id and then based on the page of the result that the user wants to view - filter for that page. If the whole result set is created as a temporary view, then this basically would mean that a new SELECT
statement is executed with a WHERE
to calculate the next set of records on the fly in chunks each time the user clicks next page.