且构网

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

压缩文本,然后存储在mysql数据库中

更新时间:2022-11-27 15:29:11

我真的没有看到存储压缩文本的任何实际好处。当然,你可能节省一些空间,但如果你的文本是如此之大,以便从压缩它获得实际的好处,我认为你需要更多地担心你的服务器的CPU有压缩/解压缩的巨大文本,每当访问者访问页面(更不用说可搜索的文本意味着您必须将其解压缩才能搜索)。

I honestly don't see any practical benefits of storing compressed texts. Sure you could probably save some space, but if your text is so big that you get a practical benefit out of compressing it, I think you need to worry more about your server's CPU having to compress / uncompress the humongous text whenever a visitor visits your pages (and not to mention searchable text means you gotta uncompress it to search).