开发者

Which Django Caching System is Faster: Filesystem or DB?

开发者 https://www.devze.com 2023-04-03 17:06 出处:网络
I know there isn\'t necessarily a clear cut between these two like there is between Memcached an DB/Filesystem, but I\'m wondering what conditions would lead to filesystem being faster than DB caching

I know there isn't necessarily a clear cut between these two like there is between Memcached an DB/Filesystem, but I'm wondering what conditions would lead to filesystem being faster than DB caching. And, c开发者_如何学Pythononversely, under what conditions would DB caching be faster than filesystem?


Filesystems are always faster than databases. Databases have overheads like locking, shard buffers, SQL parsing, query planning, etc., etc.

Ultimately, the database lives on the filesystem. A database is filesystem plus overheads.

0

精彩评论

暂无评论...
验证码 换一张
取 消