2009/8/7 Oliver Zheng <[email protected]>: > > On Aug 6, 5:27 pm, Alkis Evlogimenos ('Αλκης Ευλογημένος) > <[email protected]> wrote: >> You are doing multiple db.get calls while you do a single Query.fetch. > > But isn't the point of db.get for multiples a direct real-time (i.e. > constant time) grab? Where as a query searches through an index first, > and then does the same grab. If that is true, the time required by a > query is that multi-get plus index searching. Unless searching through > the index actually gives you time back, something is not right here.
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. -Nick Johnson > > Oliver > > > -- Nick Johnson, Developer Programs Engineer, App Engine --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
