Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我知道这两者之间不一定像 Memcached 和 DB/文件系统之间那样有明确的界限,但我想知道什么条件会导致文件系统比 DB 缓存更快。而且,相反,在什么情况下数据库缓存会比文件系统快?
文件系统总是比数据库快。数据库有诸如锁定、分片缓冲区、SQL 解析、查询计划等开销。
最终,数据库存在于文件系统上。数据库是文件系统加上开销。