mysql数据压缩存储_压缩文本,然后存储在mysql数据库中
I am developing a web application using php and MySQL. I am compressing the text using gzcompress() php function before storing in MySQL database / storing compressed form of text in database. My Question is that is this OK? to store compressed form? Or this method will create trouble or not for me? I am compressing text for saving disk space.
解決方案
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).
總結
以上是生活随笔為你收集整理的mysql数据压缩存储_压缩文本,然后存储在mysql数据库中的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: mysql 5.5.46_MySQL 5
- 下一篇: mysql 5.6 slave stop