Re: [google-appengine] How do I use get_serving_url correctly?

2010-08-27 Thread Nickolas Daskalou
Ikai, is there any way of doing this asynchronously (like URLFetch fetch() calls)? Eg: (copied mostly from http://code.google.com/appengine/docs/python/urlfetch/asynchronousrequests.html ) from google.appengine.api import images # ... blob_keys = [..., ..., ..] blob_key_serving_urls = []

Re: [google-appengine] How do I use get_serving_url correctly?

2010-08-26 Thread Ikai L (Google)
Yes, you can cache the result. In practice, subsequent calls of get_serving_url on the same blob should be faster, but if you have more new blobs than old ones on a page it can be slow. The resulting URL only becomes invalid if the blob is deleted. On Tue, Aug 24, 2010 at 1:53 PM, Flips

[google-appengine] How do I use get_serving_url correctly?

2010-08-24 Thread Flips
Hi, how do I use get_serving_url correctly if I'd like to host a gallery of 28 pictures? I currently fetch all blob_keys and call 28 times the get_serving_url method to get my image urls. But this attempt is really slow (about 12 seconds). Would it be smarter to call get_serving_url if the blob