Skip navigation links

MySQL Forums :: Partitioning :: Partition problem (Data striping)


Advanced Search

Re: Partition problem (Data striping)
Posted by: Mattias Jonsson ()
Date: April 13, 2012 08:08AM

For MyISAM it should be something like this:

CREATE TABLE t
(a ...,
PRIMARY KEY (a,...))
ENGINE = MyISAM
PARTITION BY HASH (a)
(PARTITION p0 DATA DIRECTORY = '/disk0/d0' INDEX DIRECTORY = '/disk0/i0',
PARTITION p1 DATA DIRECTORY = '/disk1/d1' INDEX DIRECTORY = '/disk1/i1',
PARTITION p2 DATA DIRECTORY = '/disk2/d2' INDEX DIRECTORY = '/disk2/i2',
PARTITION p3 DATA DIRECTORY = '/disk3/d3' INDEX DIRECTORY = '/disk3/i3',
PARTITION p4 DATA DIRECTORY = '/disk4/d4' INDEX DIRECTORY = '/disk4/i4',
PARTITION p5 DATA DIRECTORY = '/disk5/d5' INDEX DIRECTORY = '/disk5/i5');

Also note that you currently cannot alter DATA/INDEX directory. You have to set them up at CREATE (or do unsupported stuff like manually move the data/index files and symlink to them).

Yet another note is that table scanning is done one partition at a time, but ordered (index) reads may give you a striping access pattern.

Options: ReplyQuote


Subject Views Written By Posted
Partition problem (Data striping) 1620 Randy Roadax 04/10/2012 07:09PM
Re: Partition problem (Data striping) 806 Rick James 04/12/2012 07:02PM
Re: Partition problem (Data striping) 950 Randy Roadax 04/12/2012 08:30PM
Re: Partition problem (Data striping) 852 Rick James 04/13/2012 04:49PM
Re: Partition problem (Data striping) 943 Randy Roadax 04/13/2012 06:18PM
Re: Partition problem (Data striping) 964 Mattias Jonsson 04/13/2012 08:08AM
Re: Partition problem (Data striping) 972 Randy Roadax 04/13/2012 03:20PM
Re: Partition problem (Data striping) 969 Mattias Jonsson 04/13/2012 04:17PM
Re: Partition problem (Data striping) 902 Randy Roadax 04/13/2012 04:36PM
Re: Partition problem (Data striping) 839 Mattias Jonsson 04/14/2012 05:25PM


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.