Skip to content

Use datastore aggregation query for count() #884

@remko

Description

@remko

Firestore in Datastore mode supports counting via aggregation query. Counting this way seems faster than the current methods used in NDB (skipping/brute force).

Can the current count() implementation use counting via aggregation query? (Note that this does not work on the datastore emulator)

Metadata

Metadata

Assignees

No one assigned

    Labels

    api: datastoreIssues related to the googleapis/python-ndb API.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions