Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use datastore aggregation query for count() #884

Open
remko opened this issue May 26, 2023 · 0 comments
Open

Use datastore aggregation query for count() #884

remko opened this issue May 26, 2023 · 0 comments
Labels
api: datastore Issues related to the googleapis/python-ndb API.

Comments

@remko
Copy link

remko commented May 26, 2023

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)

@product-auto-label product-auto-label bot added the api: datastore Issues related to the googleapis/python-ndb API. label May 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: datastore Issues related to the googleapis/python-ndb API.
Projects
None yet
Development

No branches or pull requests

1 participant