You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@beam.apache.org by GitBox <gi...@apache.org> on 2022/06/03 18:33:47 UTC

[GitHub] [beam] kennknowles opened a new issue, #18423: Key only reads from Google Datastore

kennknowles opened a new issue, #18423:
URL: https://github.com/apache/beam/issues/18423

   Currently there is no functionality allowing to read only keys from the Google Datastore through the Datastore IO. In some cases users don't need to read the whole entity, e.g. to filter by certain values in ancestry. This seems to be an important feature as the entity reads are expensive and thus the native Datastore client/API allow to run Key Only queries. 
   
   Imported from Jira [BEAM-2819](https://issues.apache.org/jira/browse/BEAM-2819). Original Jira may contain additional context.
   Reported by: ilnar.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@beam.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Key only reads from Google Datastore [beam]

Posted by "sosimon (via GitHub)" <gi...@apache.org>.
sosimon commented on issue #18423:
URL: https://github.com/apache/beam/issues/18423#issuecomment-1897537691

   This may or may not be applicable for Java, but for the Python SDK, I believe we can specify `projection = ["__key__"]` to do a keys-only query. It's not really documented though.
   
   Relevant bit of code: https://github.com/googleapis/python-datastore/blob/main/google/cloud/datastore/query.py#L463-L465


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@beam.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org