Giter VIP home page Giter VIP logo

Comments (7)

jaivikram avatar jaivikram commented on June 2, 2024

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.

sorl avatar sorl commented on June 2, 2024

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.

jaivikram avatar jaivikram commented on June 2, 2024

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.

sorl avatar sorl commented on June 2, 2024

"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.

jaivikram avatar jaivikram commented on June 2, 2024

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.

sorl avatar sorl commented on June 2, 2024

No sweat :)

from sorl-thumbnail.

jaivikram avatar jaivikram commented on June 2, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.