4 ms·
The entire value proposition of Redis is that it operates out of memory, and therefore has memory-like performance. (edit: And doesn't provide the benefit of, a
by kiitos 3y ago
The entire value proposition of Redis is that it operates out of memory, and therefore has memory-like performance. (edit: And doesn't provide the benefit of, and therefore pay the costs related to, ACID-like consistency guarantees.) If you move it to disk (edit: Or try to assert ACID-like consistency or transactional guarantees) there's little reason to use Redis any more.
- qbane 3y agoSQLite does allow one to keep the entire database in memory: https://www.sqlite.org/inmemorydb.html https://www.sqlite.org/inmemorydb.html
- j-pb 3y agoBut is still orders of magnitude slower than a hash-map.
- SJC_Hacker 3y agoIf you want ordering, then a hash-map doesn't help you.
- j-pb 3y agoStill orders of magnitude slower than a B-Tree Map.
- egeozcan 3y agoYou can also create an in-memory sqlite database though.
- PhilipRoman 3y ago>The entire value proposition of Redis is that it operates out of memory Not familiar with Redis specifically, but I doubt this idea. You can run anything on top of a ramdisk (granted, you can save a few pointer additions and get rid of some safety checks if you know you're working with memory)
- yuliyp 3y agoSure you can run things off a ramdisk, but the way you lay out data to achieve high performance from disk vs from RAM is different (disk assumes that you read pages of data at once, and tries to avoid reading extra pages, while RAM assumes that you read cache lines of data at once).
- 77pt77 3y agoYou can tun sqlite in memory by using the filename :memory: