Skip to content

Feature Request: make result row limit configurable (was: Feature Request: Display results in pages) #178

@csubhodeep

Description

@csubhodeep

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestuiPertaining to the UI code, which is not in this repository.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions