Skip to content
This repository was archived by the owner on Jun 1, 2026. It is now read-only.
This repository was archived by the owner on Jun 1, 2026. It is now read-only.

Data tables perform poorly with small batch sizes #661

Description

@mootari

Describe the bug

When querying a large result set with small batch sizes (2048 for DuckDB), the table output can take a long time to settle even after all batches are available.

I ran into this with Motherduck where the full result got streamed within 2 seconds after the first batch but the table took an entire minute to catch up (timed separately).

To Reproduce

Example: https://observablehq.com/d/40ae382ca9c82fcb

Steps to reproduce the behavior:

  1. Create a notebook with db = DuckDBClient.of()
  2. Create an SQL cell with db as source and the query select range, range::text str from range(0, 6000000)
  3. Observe that it takes several seconds until all rows are available

Expected behavior

The table should render near instantaneously.

Screenshots

Table batches:

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions