L
L
lloyd672021-03-25 12:52:37
Redis
lloyd67, 2021-03-25 12:52:37

Redis is there a dependence of cache performance on its size?

The Django application makes extensive use of Redis as a cache of MySQL query fetches.

The question is: is there any dependence of Redis performance on its amount in RAM?
For example, a cache size of 1GB and 6GB will work equally effectively in terms of samples?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
R
Romses Panagiotis, 2021-03-25
@romesses

Most likely there is a difference. But whether the difference is significant is impossible to know without knowing what data and what samples.
Each command has its own algorithmic complexity. All this can affect the operation of the application.
Gotta freeze.

R
Roman Kitaev, 2021-03-25
@deliro

https://redis.io/commands/GET O(1) - constant time, does not depend on the size of the database

D
Dimonchik, 2021-03-25
@dimonchik2013

in such systems it is always O(1)
but(!) until the cache exceeds the physically available memory, and here... hehe, that's why they
periodically test different ones, for practice

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question