matthewwithanm / django-imagekit

Automated image processing for Django. Currently v4.0
http://django-imagekit.rtfd.org/
BSD 3-Clause "New" or "Revised" License
2.27k stars 275 forks source link

Image retrieval is extremely slow under boto and django-storages #250

Open rafaelcanovas opened 11 years ago

rafaelcanovas commented 11 years ago

I'm using boto and django-storages to store my static and media files at Amazon S3, and django-imagekit to process the images. The first time an image is accessed it is generated, and the generation time is acceptable. But the subsequent retrieval delay is so huge.

I read django-imagekit checks for the existence of the file every time it is accessed, maybe this is the problem. And using the "optimist" cache backend would solve my problem. But I can't use this cache backend, since I have user profile photos, and the photos are changed and generated routinely.


boto==2.9.4
django-storages==1.1.6
django-imagekit==3.0.3
javimb commented 10 years ago

Use CloudFront with the S3 bucket. It worked for me.