Thumbnails are slow with S3: set up proper caching #81085

Open
opened 2020-09-23 12:58:35 +02:00 by Anna Sirota · 1 comment
Owner

Thumbnail template tags are really slow, possibly slower with AWS S3 than they were with GCS.

This issue might be contributing: https://github.com/jazzband/sorl-thumbnail/issues/351, but doesn't actually account for all the slowness: removing .exists() call didn't do much difference.

Current workaround for local setup is to cache thumbnail calls in the template (see commit https://developer.blender.org/rBLS53bfa6d981fb), however, without proper caching setup it only makes a difference for the development server.

See more at https://docs.djangoproject.com/en/3.1/topics/cache/

Thumbnail template tags are really slow, possibly slower with AWS S3 than they were with GCS. This issue might be contributing: https://github.com/jazzband/sorl-thumbnail/issues/351, but doesn't actually account for all the slowness: removing `.exists()` call didn't do much difference. Current workaround for local setup is to cache thumbnail calls in the template (see commit https://developer.blender.org/rBLS53bfa6d981fb), however, without proper caching setup it only makes a difference for the development server. See more at https://docs.djangoproject.com/en/3.1/topics/cache/
Anna Sirota self-assigned this 2020-09-23 12:58:35 +02:00
Author
Owner

Added subscriber: @railla

Added subscriber: @railla
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: studio/blender-studio#81085
No description provided.