Version : Mysql 5.1 

Engine : MyISAM.

The indexes  are normal but neither primary key or unique key.

I should describe mysql question clearly.

When inserting massive data rows to table which need to be created indexes, i 
can create indexes before inserting data rows, anther way is that i can insert 
all data rows firstly and then create indexes. Normally, the sum using 
time(inserting data rows and creating indexes) of first way is longer than the 
second way.

Please tell me why?







________________________________
 
发件人: Ananda Kumar <anan...@gmail.com>
收件人: Zhangzhigang <zzgang_2...@yahoo.com.cn> 
抄送: "mysql@lists.mysql.com" <mysql@lists.mysql.com> 
发送日期: 2012年5月7日, 星期一, 下午 3:31
主题: Re: Why is creating indexes faster after inserting massive data rows?
 

which version of mysql 燼re you using.

Is this secondary index.?




On Mon, May 7, 2012 at 12:07 PM, Zhangzhigang <zzgang_2...@yahoo.com.cn> wrote:

hi all:
>
>I have a question:
>
>Creating indexes after inserting massive data rows is faster than before 
>inserting data rows.
>Please tell me why.
>

Reply via email to