If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > MySQL > MyIsam Table corruption

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 11-13-03, 18:09
hthemnan hthemnan is offline
Registered User
 
Join Date: Nov 2003
Posts: 2
MyIsam Table corruption

Hello,
I am using MySQL Server 3.23.56 on Redhat Linux 7.2 and having the following problem: When the tables of type MyIsam are copied, and I run a query on the tables created by copy – it takes awfully long as compared to when run on the original tables.

When we run the command “check table” and “repair table”, it takes around 10-15 seconds on some of the tables although “check table” returns everything ok. But after “repair table” is run on those tables, the query gets faster.

There’s one table that has 10 indexes and 10,000 rows and the other table has 3 indexes and 500 rows. The query that gets slow has lot of left joins on these tables. I am not sure what’s causing the problem and how to fix it. Could anybody please help me.

Thanks,
Hitesh
Reply With Quote
  #2 (permalink)  
Old 11-13-03, 18:15
bstjean bstjean is offline
Registered User
 
Join Date: Sep 2002
Location: Montreal, Canada
Posts: 219
Re: MyIsam Table corruption

Quote:
Originally posted by hthemnan
Hello,
I am using MySQL Server 3.23.56 on Redhat Linux 7.2 and having the following problem: When the tables of type MyIsam are copied, and I run a query on the tables created by copy – it takes awfully long as compared to when run on the original tables.

When we run the command “check table” and “repair table”, it takes around 10-15 seconds on some of the tables although “check table” returns everything ok. But after “repair table” is run on those tables, the query gets faster.

There’s one table that has 10 indexes and 10,000 rows and the other table has 3 indexes and 500 rows. The query that gets slow has lot of left joins on these tables. I am not sure what’s causing the problem and how to fix it. Could anybody please help me.

Thanks,
Hitesh
Well, your original table probably has probably a lot of the index keys and records buffered... The fact that your "copy" tables becomes fast *after* a repair table is most likely a sign that the repair itself buffered a lot of your data...

Have you tried shutting down your server and performing the same test on your original table right after the server is brought up?
Reply With Quote
  #3 (permalink)  
Old 11-14-03, 19:24
hthemnan hthemnan is offline
Registered User
 
Join Date: Nov 2003
Posts: 2
thanks for your reply, bstjean. I will perform the test that you mentioned and will let you know how it goes.

Thanks again,
hitesh
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On