I have read in various places that:
projection queries run faster and cost less than one that returns complete entities
because the query results are satisfied from the indexes rather than disk reads. See:Google docs here and Comment from Guido Van Rossum here.
The comments from Guido seem to imply that it is faster to retrieve an entity's details through a projection query than through a key.
However, Pg 135 of 'Programming GAE with Python' by Dan Sanderson mentions:
if you have a key...you can retrieve the entity quickly, much more quickly than with a datastore query.
Given a situation where i can retrieve my data using either a projection query or the entities' key (with get_multi):
- Is it faster to use the keys or the projection queries?
- Is one method more expensive than the other?