Oh I see you time only the last db.get() call. Nevertheless you are still
not comparing apples to apples. In the db.get case you fetch entities and in
the query case you fetch keys only.

2009/8/7 Oliver Zheng <[email protected]>

>
> On Aug 7, 1:33 am, "Nick Johnson (Google)" <[email protected]>
> wrote:
> > Queries fetch the entities in parallel - as do bulk gets. Thus, the
> > time taken for the entity-fetching part of a query or a bulk get is
> > proportional to the time required to fetch the slowest entity (plus
> > some overhead transmitting the response back), not linear with the
> > number of entities.
>
> Right, but that doesn't explain why queries takes *shorter* time than
> a bulk get!
>
> On Aug 7, 2:24 am, Alkis Evlogimenos ('Αλκης Ευλογημένος)
> <[email protected]> wrote:
> > The problem is that you are *not* doing a multi-get for the get 20 case.
> You
> > do 20 gets sequentially.
>
> How so? Is db.get(list()) not a parallel get?
>
> Oliver
> >
>


-- 

Alkis

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to