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
13121
March 05, 2008 03:06PM
7546
March 25, 2008 04:50AM
4218
September 30, 2008 10:18AM
4339
October 01, 2008 07:39PM
4075
October 03, 2008 04:26AM
3732
October 05, 2008 08:39PM
3831
October 08, 2008 10:43AM
Re: How to move partition files
3759
October 08, 2008 10:45PM
4616
October 09, 2008 02:15AM
3615
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.