MySQL Forums
Forum List  »  InnoDB

Re: random-access I/O
Posted by: Rick James
Date: January 31, 2012 08:25PM

300GB will take a long time -- maybe days. "Count the disk hits".

Do you have blobs? Can you compress them? That will save a significant amount of I/O (and space).

To assist in analyzing slow SELECTs, please provide
* SHOW CREATE TABLE tbl\G -- engine, indexes -- all relevant tables
* SHOW TABLE STATUS LIKE 'tbl'\G -- sizes
* EXPLAIN SELECT ...\G -- clues of inefficiencies
* SHOW VARIABLES LIKE '%buffer%'; -- cache size
and surround them with [ code ] and [ / code ]

> What would you recommend me to do in order to improve the performance?
Let's take a careful look at the indexes in both the old and the new tables. And let's see the INSERT...SELECT.

At 300GB, you are a candidate for PARTITIONing. And you may have a case for partitioning just to cut down on thrashing the cache.

> used to reorder the DB based on a new primary key
It is unclear whether you should sort before inserting or insert randomly. Need to see the details.

Options: ReplyQuote


Subject
Views
Written By
Posted
3579
January 31, 2012 03:50AM
Re: random-access I/O
1083
January 31, 2012 08:25PM
1022
February 01, 2012 05:19AM
986
February 03, 2012 01:41AM
1243
February 03, 2012 02:39AM
1070
February 03, 2012 11:08PM
1014
February 04, 2012 08:54AM
1536
February 05, 2012 12:56PM
1031
February 08, 2012 07:22AM
1493
February 08, 2012 11:17PM
927
February 09, 2012 05:30AM
1016
February 09, 2012 01:48AM
846
February 09, 2012 01:58AM
1061
February 09, 2012 10:52AM


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.