Skip to content

sql, kv: propagate and utilize estimated row count hint for KV projection pushdown work #94850

@yuzefovich

Description

@yuzefovich

In some cases, we have the estimated row count hint for how many rows will be needed from the table reader. In the initial version of the KV projection pushdown work that information is not utilized, but it'd be nice to take advantage of the hint. In particular, this will allow the wrapped cFetcher to create batches of reasonable capacity (rather than doing exponential increase starting with the size of 1).

Note that this estimate is already used to set MaxSpanRequestKeys limit on the whole BatchRequest on the SQL side.

Jira issue: CRDB-23186

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-enhancementSolution expected to add code/behavior + preserve backward-compat (pg compat issues are exception)T-sql-queriesSQL Queries Team

    Type

    No type

    Projects

    Status

    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions