Skip to content

Optimize trino count queries that include visibility checks #10818

Description

@andresdantereng

Right now, filtering by visibilities requires scanning all rows. This slows down queries which should be faster, such as querying for counts. The solution might involve using file metadata to filter out entire files whose visibility values are higher that that of the user performing the query. Other solutions might also exist and should be explored for effectiveness.

Constraint: A solution should not require re-writing of existing data. Updating metadata, however, is okay.

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