google cloud platform - How to do a GQL query (using gcloud-python) -
i have collection of entities of 1 kind. need extract distinct values of 1 property, named p, of these entities.
in gql, do:
select distinct p kind
however in gcloud-python library gql queries aren't implemented yet (see issue-304).
how should tools available in gcloud-python ? i'm aware of "group-by" workaround, yet performances terrible.
gcloud-python doesn't provide way string gql query (source), seems can use group_by
field in cloud datastore api accomplish same thing.
references:
Comments
Post a Comment