MySQL Forums
Forum List  »  Partitioning

Re: Partition Linear Hast with function how expretion
Posted by: Mikael Ronström
Date: July 24, 2006 01:06AM

Hi,
It's not allowed to use select statement in the partition function.
The partition function one should strive to keep fairly short since it
is used in every single record insert, update, delete and it is also
heavily used in partition pruning.

Rgrds Mikael


Eduardo Garcia Wrote:
-------------------------------------------------------
> Sorry
>
> i'm use Linear Hast don't Hash
>
> DROP TABLE IF EXISTS `Sid`;
> CREATE TABLE `Sid` (
> `sid_id` int(11) NOT NULL auto_increment,
> `sid` varchar(255) NOT NULL default '',
> `keyword_id` int(11) NOT NULL default '0',
> `creative_id` int(11) NOT NULL default '0',
> `sid2` varchar(255) NOT NULL default '',
> `max_bid_cpc` double(5,2) unsigned NOT NULL
> default '0.00',
> `min_cpc` double(5,2) unsigned NOT NULL default
> '0.00',
> `parent_id` int(11) NOT NULL default '0',
> `bid_percentage` double(5,2) NOT NULL default
> '1.00',
> `status` varchar(50) NOT NULL default 'active',
> PRIMARY KEY (`sid_id`),
> KEY `keyword_id` (`keyword_id`),
> KEY `creative_id` (`creative_id`),
> KEY `sid2` (`sid2`),
> KEY `sid` (`sid`),
> KEY `parent_id` (`parent_id`)
> )
> PARTITION BY LINEAR HASH(
> Get_Client_Creative(`creative_id`) )
> PARTITIONS 50;
>
> ----
>
> enzo

Mikael Ronstrom
Senior Software Architect, MySQL AB
My blog: http://mikaelronstrom.blogspot.com

Options: ReplyQuote


Subject
Views
Written By
Posted
Re: Partition Linear Hast with function how expretion
2477
July 24, 2006 01:06AM


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.