Skip to content

perf(query-engine): avoid cloning native range plan outputs #816

Open

Description

@milindsrivastava1997

Problem

QueryPlan execution clones every node output for its consumers, and native Estimate clones resolved reads again. For range queries with many groups and buckets, this retains several full bucket-map copies at peak.

Scope

Redesign plan-output ownership so dependency inputs are moved or cheaply shared, for example with Arc, while preserving DAG execution semantics and existing error behavior.

Acceptance criteria

  • Native range execution does not clone full read, composed, or resolved bucket maps merely to pass DAG inputs.
  • Existing range-query behavior and test coverage remain unchanged.
  • Memory ownership is explicit at the plan-runtime interface.

Activity

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions