-
count用法null查看全部
-
Count()优化查看全部
-
1、硬件 2、系统配置 3、数据表结构 4、sql和索引查看全部
-
innodb_buffer_pool_instances mysql5.5以后新增,控制缓冲池,默认只有一个缓冲池查看全部
-
innodb_buffer_pool_size 设置位总内存的75%,如果同时运行myisam类型的表,那么适当减少一点比例 select engine round(sum(data_length+index_length)/1024/1024,1) as "Total MB", from information_schema.tables where table_schema not in ("information_schema","performance_schema") group by engine; Innodb_buffer_pool_size >= Total MG查看全部
-
系统优化查看全部
-
商品表 分类表 商品——分类关联表查看全部
-
分类描述依赖于分类,分类又依赖于商品名称,而商品名称为主键——关键字段查看全部
-
mysql> create table testtime(id int auto_increment not null,timestr int,PRIMARY KEY(id)); Query OK, 0 rows affected (0.01 sec) mysql> desc testtime; +---------+---------+------+-----+---------+----------------+ | Field | Type | Null | Key | Default | Extra | +---------+---------+------+-----+---------+----------------+ | id | int(11) | NO | PRI | NULL | auto_increment | | timestr | int(11) | YES | | NULL | | +---------+---------+------+-----+---------+----------------+ 2 rows in set (0.01 sec) mysql> insert into testtime(timestr) values(UNIX_TIMESTAMP('2014-06-01 21:00:00')); Query OK, 1 row affected (0.00 sec) mysql> select FROM_UNIXTIME(timestr) from testtime; +------------------------+ | FROM_UNIXTIME(timestr) | +------------------------+ | 2014-06-01 21:00:00 | +------------------------+ 1 row in set (0.00 sec)查看全部
-
优化方案: 1.sql 索引 2.数据库结构 3.系统配置 4.硬件查看全部
-
1.数据库timeout 2.满查询 3.组赛查看全部
-
选择合适的数据类型查看全部
-
索引的维护及优化——删除不用的索引 但是有一些索引在主没有使用,但在从还在使用,这样的应该保留,要注意查看全部
举报
0/150
提交
取消