Home » Performance » MySQL » Create INDEX blocks writes to other tables
Create INDEX blocks writes to other tables [message #445] Mon, 04 December 2006 17:31 Go to previous message
jerry  is currently offline jerry
Messages: 2
Registered: December 2006
Junior Member
I noticed a problem that I cannot explain. I hope that you can help me on this.

When I do "ALTER TABLE t1 ADD CONSTRAINT PRIMARY KEY ...." on a vary large MYISAM table, I noticed that updates/inserts to other MYISAM tables are 'blocked'. Once the "ALTER" statement is done, all the updates statements are processed in a few seconds.

Those updates/inserts are very simple and quick primary key based operations on totally DIFFERENT tables. Without this large "ALTER TABLE t1 ADD CONSTRAINT PRIMARY KEY ...." running concurrently, this updates/inserts can be down in fraction of seconds.

It is not table lock problem since the ops are on different tables. Is there some critical resources, (Key buffer, sort buffer, tmp space), used by "Index Creation" that can cause this problem?


Read Message
Read Message
Previous Topic:How to tell if you are Disk IO bound
Next Topic:MySQL ODBC connection loss
Goto Forum:

  


Current Time: Fri Jul 10 02:05:54 EDT 2009

Total time taken to generate the page: 0.06913 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 2.7.7.
Copyright ©2001-2007 FUD Forum Bulletin Board Software

MySQL is a trademark of Sun Microsystems.
InnoDB is a trademark of Oracle Corp.

Percona Performance Forums are a service of Percona, Inc.
Not affiliated with Sun Microsystems or Oracle Corp.