Re: How to move partition files
We have a very similar application in which there are hundreds of gigs of data, but the most recent data is accessed most frequently. It might seem like a step backward, but after experimenting with partitions for many months, we ultimately decided to just use MERGE tables instead. The underlying tables are just ordinary MyISAM tables, so you can move them around, repair them, and query them independently. Better yet, you can group those tables together selectively into new MERGE tables on the fly, since a MERGE table is itself just a shell and therefore takes zero time to build.
The big problem with using a WHERE condition to trigger partition pruning is that this usually causes the MySQL optimizer not to use available indexes for other selection criteria in the query itself. If your data is laid out in a predictable manner (monthly, for instance), it's WAY faster to write your queries against specific tables and use the indexes there. (That's assuming you have other criteria in your queries.)
Edited 1 time(s). Last edit at 10/08/2008 10:47PM by Robert Freeland.
Subject
Views
Written By
Posted
12615
March 05, 2008 03:06PM
7327
March 25, 2008 04:50AM
4026
September 30, 2008 10:18AM
4095
October 01, 2008 07:39PM
3901
October 03, 2008 04:26AM
3570
October 05, 2008 08:39PM
3618
October 08, 2008 10:43AM
Re: How to move partition files
3569
October 08, 2008 10:45PM
4371
October 09, 2008 02:15AM
3453
October 21, 2008 09:21AM
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.