Groups
Groups
Sign in
Groups
Groups
学习日志
Conversations
About
Send feedback
Help
mysql 存储引擎的首选---MyISAM
0 views
Skip to first unread message
Chen Liqiang
unread,
Aug 11, 2006, 8:52:47 AM
8/11/06
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to 学习日志
这两天一直在导入大量的数据(一次最高 insert
4万多条记录),也不知是怎么回事,"心情特好",居然可以耐心地等十几分钟导这些数据。偶然的情况下发现phpmyadmin把建立的数据库存储引擎默认为InnoDb(事务安全适用),但是记得第一次使用这个程序时它的默认引擎是MyISAM,只是隐约记着后者似乎在select查询时在几种引擎中效率最高,但是其它的就不太清楚,于是就想知道,二者各自的优缺点及适用范围。于是就找出尘封已久的爱书(TOT),找到存储引擎那个章节,很快就发现了一句话"当对一个表格使用大量的SELECT或INSERT语句(或者二者的结合)时,应该使用MyISAM表格,因为在执行这两种命令时,MyISAM是最快的。"。接着就新建了一个MYISAM表,结果4万多条记录不到30秒就搞定。。。。。。。。。。。。。。。
Reply all
Reply to author
Forward
0 new messages