Skip to content

Optimize count() over range of primary key #36732

Closed

Description

@alexey-milovidov

A query like:

SELECT count() FROM table WHERE primary key >, <, >=, <=, =, BETWEEN

can read only head and tail granules from every mark range and avoid reading granules in the middle.

Activity

  1. self-assigned this
    on Apr 28, 2022
  2. amosbird commented on Jul 14, 2024

    @amosbird
    Collaborator

    A general version of this FR has been implemented and merged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions