Using NDB, it is possible to specify a projection for a query, allowing to limit the number of properties that are retrieved for the entities that match the query.
However, I couldn't find anything in the documentation about how to specify a projection when using ndb.get_multi()
, which always fetches complete entities.
Is there a way to fetch only certain properties when using ndb.get_multi()
?
No, the projection feature only works for queries. There would be no advantage (in terms of fewer I/O operations) to projecting get() operations.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With