Skip to content

Support dense Hist2D and high-cardinality grouped traces out of core #19

Open

Description

@jvdd

What happened

The first out-of-core release will limit aggregation output size. Dense Hist2D output, such as 1000 by 1000 bins, and grouped traces with about 1,000 groups are outside the supported contract because the streaming aggregation can exceed its memory budget.

What I expected

FlexViz can process these outputs from data larger than RAM with bounded memory, without changing process-wide Polars settings.

Steps to reproduce

  1. Register a Parquet source larger than available RAM.
  2. Add a 1000 by 1000 Hist2D trace, or a grouped histogram whose groups and bins produce a similar number of cells.
  3. Render it with the out-of-core path under a 3 GiB memory limit.
  4. Observe that the workload exceeds the supported output-cell limit or memory budget.

Additional context

Benchmarks used 500 million rows, eight threads, and a 3 GiB limit. Polars streaming aggregation exceeded the limit with its default settings. Increasing its process-wide hot-table size worked for some cases, but is not safe library behavior and can multiply memory use across concurrent requests.

This capability is intentionally deferred. Revisit it when Polars offers safe per-query sizing, or when another simple bounded approach passes representative single-file, multi-file, and concurrent-request benchmarks.

Activity

  1. added
    enhancement
    on Sep 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions