Skip to content

Cloud Datastore - Entity Count Query - StructuredQuery.Builder - Allow limit of 0 #6263

Description

@codeconsole

This API should be feature comparable to the standard API. 1 such feature that is missing is a count query which can very easily be implemented according to this ticket that was just closed:

#5061

All that is necessary is 1 of 3 things.

  1. Don't implement it, but allow a user workaround by allowing setting a limit of 0. Why not? You can do it with other APIs.

  2. Implement it as described in the above ticket (which works), add a count method, and maintain the exception of no allowing limits of 0.

  3. Do both.

Either way, I don't quite understand the special java implementation that throws and exception with a limit of 0 is set considering this serves a purpose and is allowed by other APIs.

Activity

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

Metadata

Metadata

Assignees

Labels

api: datastoreIssues related to the Datastore API.priority: p2Moderately-important priority. Fix may not be included in next release.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions