Comments (7)
I have a feeling that it is not accessing redis at all. There are a lot of other things going on with cache so its hard to put a finger on. Any easy suggestions for doing this? Any problems with the settings above?
from sorl-thumbnail.
Yes it does fetch the thumbnail information (as in what file is the corresponding thumbnail and thumbnail size) from cache but the actual file still needs to be accessed form your underlying storage.
from sorl-thumbnail.
I was not talking about the original file.
The original file resides in folder structure
some/project/path/media/images//actual_image.png
that should be accessed whenever its thumbnails are not in redis cache as serialized data. (no doubt)
but sorl is trying to access/write-thumbnails to a folder
some/project/path/media/some/sorl-generated/path/uid.png
and then read off of this newly created file and send it.
in which case the statement "If the key for the thumbnail is found in the Key Value Store, the serialized thumbnail information is fetched from it and returned." false, as far as I understand.
Why should sorl use any underlying storage for storing the generated thumbnails ?
from sorl-thumbnail.
"If the key for the thumbnail is found in the Key Value Store, the serialized thumbnail information is fetched from it and returned" refers to just what I said: the information about the corresponding thumbnail is stored here. "Why should sorl use any underlying storage for storing the generated thumbnails" - What can I say? We need to store thumbnails somewhere. I think you should continue on stackoverflow because I cannot see that this a problem with sorl.thumbnail at all.
from sorl-thumbnail.
Oh, got it.
I missed the word "information" in the phrase ".. serialized thumbnail information.."
I was assuming the whole image is serialized and stored in the redis, when its actually just the meta information of the thumbnail that is serialized and stored in redis.
thanks for stressing again on your words.
from sorl-thumbnail.
No sweat :)
from sorl-thumbnail.
I should have understood it earlier, if whole images (KB's / MB's of data) are stored in the redis store, the cache will saturate soon.
My bad.
from sorl-thumbnail.
Related Issues (20)
- link on sorl-thumbnail/AUTHORS should be clickable
- Setting storage class does not support deconstructors
- Django 4.1 template tag 'thumbnail' conflict with easy-thumbnails HOT 1
- "Schematic view of how things are done" link in the documentation is dead HOT 1
- Support Django 4.2 - settings.DEFAULT_FILE_STORAGE is deprecated HOT 5
- Should an empty thumbnail template tag raise an exception?
- Delete old thumbnails from the media/cache directory and the database HOT 5
- image doesn't upload at resize_image field given path.
- DeprecationWarning from setuptools 67.5.0 and above HOT 9
- Make THUMBNAIL_STORAGE contain a storage key
- Release new version to support Django 4.2 HOT 14
- Master tests fail HOT 2
- Cache using FileSystemStorage storage engine and not the S3Boto3Storage one defined HOT 1
- Review and accept or reject pending pull requests HOT 2
- AWS S3 with sorl-thumbnail is super slow HOT 9
- How to create a thumbnail in a view, rather than dynamically via a template?
- Broken link in the docs
- django 4.2 - storage options (problem with s3 and template tag)
- Broken links in cache after clear_delete_all
- Transparent padding
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sorl-thumbnail.