I see what you mean - I was only looking at ways of reducing your datastore calls.
Yes, each image load will result in a datastore call, so you'll have to factor this into the design of your application. Depending on your needs, one way you could handle this is to work with browser caches. The first load will always require all the calls, however, subsequent requests to that image should have it served from cache. If you happen to be serving a very high volume of images such that this doesn't work, that's the point where it would make sense to look at CDN providers that will use your application as an origin server. Are you seeing problems with your application hitting quota when you serve the images from the datastore? On Wed, Dec 9, 2009 at 3:37 PM, Iap <[email protected]> wrote: > > > 2009/12/10 Ikai L (Google) <[email protected]> > >> Are you using the batch get functionality? >> >> >> >> http://code.google.com/appengine/docs/python/datastore/modelclass.html#Model_get >> >> You can pass a list of IDs. This will make a single datastore call to >> fetch all entities. >> >> > > We have two concerns for passing the list of IDs. > 1) The timeout problem. It happens unpredictable. If one failure, we lost > all. Users hate to gain nothing after a period of waiting. > 2) That request would be too long to wait. We hope that the images can be > loaded asyncronously. > So the page can show something as soon as possible. > > Plus, maybe I am wrong, > 3) The client side ,even with Ajax feature, is hard to split the binary > structure of list of Images and create the images from binary data. Maybe > flash can do that, but it means we have to reconstruct the whole things, > which brings another set of limitations and complexity. > > -- > 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]<google-appengine%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/google-appengine?hl=en. > -- Ikai Lan Developer Programs Engineer, Google 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.
