MySQL Forums
Forum List  »  Partitioning

Partitioning and performance
Posted by: Per Andersson
Date: December 01, 2008 09:20AM

Hi,

I've just started testing partitioning, but I can't get any good results out of it. The more partitions I add, the worse performance I get (INSERTS). What am I doing wrong?

CREATE TABLE `tmp_table`
(
`id` int(11) NOT NULL,
`name` varchar(255) NOT NULL,
PRIMARY KEY (`id`)
)
ENGINE=MyISAM DEFAULT CHARSET=latin1
PARTITION BY RANGE (id)
(
PARTITION p0 VALUES LESS THAN (100001) ENGINE = MyISAM,
PARTITION p1 VALUES LESS THAN (200001) ENGINE = MyISAM,
PARTITION p2 VALUES LESS THAN (300001) ENGINE = MyISAM,
PARTITION p3 VALUES LESS THAN (400001) ENGINE = MyISAM,
PARTITION p4 VALUES LESS THAN (500001) ENGINE = MyISAM
)

I'm inserting 500000 rows from 5 concurrent clients. The clients are generating unique values for id (client 1 -> 1-100000, client 2 -> 100001-200000 etc.). As I stated above; the more partitions I add, the longer it takes. Creating the table without any partitioning at all is the fastest.

Options: ReplyQuote


Subject
Views
Written By
Posted
Partitioning and performance
3803
December 01, 2008 09:20AM
2577
December 01, 2008 11:58AM
2436
December 11, 2008 06: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.