且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

存储图像:DB或文件系统 -

更新时间:2023-11-29 13:38:22

将所有这些图像放在你的数据库中将会非常非常大。这意味着当你的数据库引擎可以缓存热应用程序数据时,你的数据库引擎将忙于缓存所有这些图像(一个不是真正设计的任务)。

Putting all of those images in your database will make it very, very large. This means your DB engine will be busy caching all those images (a task it's not really designed for) when it could be caching hot application data instead.

保留文件缓存直到操作系统和/或你的反向代理 - 他们会更好。

Leave the file caching up to the OS and/or your reverse proxy - they'll be better at it.