Re: Partition problem (Data striping)
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.
Subject
Views
Written By
Posted
3265
April 10, 2012 07:09PM
1928
April 12, 2012 07:02PM
1894
April 12, 2012 08:30PM
1925
April 13, 2012 04:49PM
1982
April 13, 2012 06:18PM
Re: Partition problem (Data striping)
2257
April 13, 2012 08:08AM
2162
April 13, 2012 03:20PM
2194
April 13, 2012 04:17PM
1988
April 13, 2012 04:36PM
1909
April 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.