找回密码
 立即注册
搜索
查看: 3567|回复: 1

[其他建议] dbshop_goods_index表使用MyISAM引擎,笔误?

[复制链接]
发表于 2016-12-24 22:46:40 | 显示全部楼层 |阅读模式
笔误还是设计安排??
  1. DROP TABLE IF EXISTS dbshop_goods_index;
  2. CREATE TABLE dbshop_goods_index (
  3.   `index_id` int(11) NOT NULL AUTO_INCREMENT,
  4.   `goods_id` int(11) NOT NULL,
  5.   `one_class_id` int(11) NOT NULL,
  6.   `goods_shop_price` char(20) NOT NULL DEFAULT '0',
  7.   `goods_name` char(255) NOT NULL,
  8.   `goods_extend_name` char(255) DEFAULT NULL,
  9.   `goods_thumbnail_image` varchar(150) DEFAULT NULL,
  10.   `goods_state` tinyint(1) NOT NULL,
  11.   `goods_click` int(11) NOT NULL DEFAULT '0',
  12.   `virtual_sales` int(11) NOT NULL DEFAULT '0',
  13.   `goods_add_time` int(10) NOT NULL,
  14.   `index_body` text,
  15.   PRIMARY KEY (`index_id`),
  16.   KEY `goods_id` (`goods_id`,`goods_state`),
  17.   KEY `class_id` (`one_class_id`),
  18.   KEY `goods_add_time` (`goods_add_time`),
  19.   KEY `goods_click` (`goods_click`),
  20.   KEY `goods_shop_price` (`goods_shop_price`)
  21. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
复制代码


回复

使用道具 举报

发表于 2016-12-24 23:56:48 | 显示全部楼层
不是笔误,是MyISAM,因为这个表主要用于检索,不会用到事务处理。检索处理,MyISAM类型是很快的。所以使用MyISAM类型。
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|Archiver|手机版|小黑屋|北京珑大钜商科技有限公司 ( 京ICP备15047709号-3 )

GMT+8, 2024-5-3 03:39 , Processed in 0.063394 second(s), 18 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表