Is there a way to specify a projection for ndb.get_multi ()?

Using NDB, you can specify projection for the query, which allows you to limit the number of properties that are retrieved for objects matching the query.

However, I could not find anything in the documentation on how to specify a projection when using ndb.get_multi() , which always retrieves complete objects.

Is there a way to get only certain properties when using ndb.get_multi() ?

+4
source share
1 answer

No, the projection function only works for queries. There would be no advantage (in terms of fewer I / O operations) for performing get () operations.

+7
source

All Articles