mysql是否自动压缩数据库? [英] Is mysql automatically compressing the database?
问题描述
我的表条目很长,大约10000个字符,所以我想知道是否需要在插入mysql
之前自己压缩它,例如使用gzip库?
My table entry was pretty long , around 10000 characters , so i'm wondering if i need to compress that myself , e.g use gzip library , before inserting to mysql
?
当前我正在使用MyISAM数据库格式.
Current i'm using MyISAM database format.
谢谢!
推荐答案
可以在CREATE TABLE
和ALTER TABLE
语句中使用属性ROW_FORMAT=COMPRESSED, KEY_BLOCK_SIZE
或同时使用属性ROW_FORMAT=COMPRESSED, KEY_BLOCK_SIZE
来启用表压缩.根据选项值的组合,InnoDB
尝试压缩每个页面
you can use the attributes ROW_FORMAT=COMPRESSED, KEY_BLOCK_SIZE
, or both in the CREATE TABLE
and ALTER TABLE
statements to enable table compression. Depending on the combination of option values, InnoDB
attempts to compress each page
有关更多详细信息,请通过以下链接:
For more details go through below link:
这篇关于mysql是否自动压缩数据库?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!