G
G
Georg2018-09-08 02:25:11
Redis
Georg, 2018-09-08 02:25:11

Can Redis store more data than its allocated memory?

Actually, the question is of interest - can Redis be used as the main storage for data (for example, 100 GB), by allocating it a much smaller amount of RAM (for example, 10 GB)?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
F
forspamonly2, 2018-09-08
@forspamonly2

not anymore. earlier, in the days of the second versions, there was some kind of virtual memory in it, although it never worked well.
at that time we tried to use this opportunity, but when it climbed to the disk, the performance drops were really disproportionate to the activity of our work with the database. it's possible that Redis's internal data structures aren't designed to support any kind of locality at all, and he's constantly having to rummage through memory. obviously, it's faster and more economical, but this is combined extremely badly with disks.

P
Papa, 2018-09-08
Stifflera @PapaStifflera

No, he can not. And it's written in the documentation.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question