MySQL Forums
Forum List  »  Performance

Re: How to get acceptable/repeatable performance on huge table
Posted by: Peter Stridsberg
Date: August 31, 2012 05:54AM

show processlogs for 15 minutes reveals "Copying to tmp table".

Data sizes are huge, so no wonder:
mysql> SHOW TABLE STATUS LIKE 'UserVisits'\G
*************************** 1. row ***************************
Name: UserVisits
Engine: InnoDB
Version: 10
Row_format: Compact
Rows: 229781925
Avg_row_length: 137
Data_length: 31576817664
Max_data_length: 0
Index_length: 0
Data_free: 7340032
Auto_increment: NULL
Create_time: 2012-01-24 18:58:03
Update_time: NULL
Check_time: NULL
Collation: utf8_general_ci
Checksum: NULL
Create_options:
Comment:

When possible, I will add another index (adId, Uid) hoping that this will avoid temporary table and that the query could access the index alone with no need to access actual data (am I really wrong that sizes of other data columns would then not matter to this query?)

Options: ReplyQuote


Subject
Views
Written By
Posted
Re: How to get acceptable/repeatable performance on huge table
1014
August 31, 2012 05:54AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.