5 ms·
This is quite interesting! How can be a disk based cache be faster than redis? (They claim this on their Github page)
by avinassh 5y ago
This is quite interesting! How can be a disk based cache be faster than redis? (They claim this on their Github page)
- polyrand 5y agoI would say: 1. No network round trips 2. SQLite runs in the same process as your app, so reading from SQLite is basically like calling a function in your program (from a performance point of view).
- avinassh 5y agoI checked the benchmarks page [0], they run the Redis in same machine. And also, running Redis in different machine and connecting over networking isn't same compared to using diskcache. > SQLite runs in the same process as your app, so reading from SQLite is basically like calling a function in your program But SQLlite needs to write to disk, which will be much costly. [0] - http://www.grantjenks.com/docs/diskcache/cache-benchmarks.html http://www.grantjenks.com/docs/diskcache/cache-benchmarks.ht...