- 论坛徽章:
- 0
|
show create table Syslog;
| Syslog | CREATE TABLE `Syslog` (
`id` int(11) NOT NULL auto_increment,
`fac` tinyint(4) NOT NULL default '0',
`pri` tinyint(4) NOT NULL default '0',
`host` varchar(64) default NULL,
`time` timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP,
`msg` varchar(255) default NULL,
PRIMARY KEY (`id`),
KEY `priSyslog` (`pri`),
KEY `facSyslog` (`fac`),
KEY `timeSyslog` (`time`),
FULLTEXT KEY `msg` (`msg`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 |
后面3个KEY因为在上面建立了索引常用于查询 正考虑给删了 否则应该会影响插入效率吧 但不至于是问题所在吧 |
|