Slow images.GetUrlBase() fn call in images.get_serving_url

144 views
Skip to first unread message

Aakash Bapna

unread,
Mar 31, 2015, 3:02:52 AM3/31/15
to google-a...@googlegroups.com
Its taking more than a 1000ms almost everytime, is it known to be slow?

Any suggestions, workarounds?

(Using the python runtime, I call this method just after storing the image on gcs)

Renzo Nuccitelli

unread,
Mar 31, 2015, 3:13:29 PM3/31/15
to google-a...@googlegroups.com
If you are generating the images for several times, you could use the asynchronous version of API so you can run in parallel.

Another thing that I do is saving the url from the generate image on your model, so you can just do it once and reuse this url when you need it. This is option is great if only need resizing or cropping, once you can do it appending the right string on url's end:


Regards,
Renzo Nuccitelli
Reply all
Reply to author
Forward
0 new messages