Re: Identical servers different plan for the same query
Posted by:
Rick James
Date: April 10, 2012 10:29PM
> The partitioned table requires a unique index and that was the only unique key.
What? A partitioned table requires that every UNIQUE (or PRIMARY) key contain the "partition key". InnoDB tables _should_ have an explicit PRIMARY KEY.
What is the PARTITION key? What is the PARTITION type?
155GB of data? We should look at the datatypes to see if they can be made smaller, for example:
You have 91 accounts? Yet `account` takes 4 bytes?
Note that, in InnoDB, every secondary key (of which you have 2) contains a copy of the PRIMARY KEY. That explains why the Index_length is bigger than the Data_length.
Is innodb_buffer_pool_size about 70% of available RAM?
SELECT * FROM information_schema.PARTITONS WHERE TABLE_NAME = 'pool_usage';
Subject
Views
Written By
Posted
3201
April 07, 2012 01:20AM
1436
April 07, 2012 09:55AM
1437
April 07, 2012 02:54PM
1692
April 08, 2012 12:20PM
1876
April 09, 2012 10:24AM
1461
April 09, 2012 10:35AM
1392
April 09, 2012 10:37AM
1458
April 09, 2012 10:42AM
1461
April 10, 2012 03:28PM
Re: Identical servers different plan for the same query
1497
April 10, 2012 10:29PM
1381
April 11, 2012 10:05AM
1473
April 12, 2012 08:56AM
1450
April 12, 2012 03:23PM
2567
April 13, 2012 03:49PM
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.