im testing now for +10hours to get a database structure with a primary key (id) and a partition by bigint. but nothing will work :/ is that possible? maybe anybody could give a me good hint ;)
CREATE TABLE IF NOT EXISTS `test` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`uniqueID` bigint(20) DEFAULT NULL,
`value` int(11) DEFAULT NULL,
`m1` text CHARACTER SET utf8,
`m2` text CHARACTER SET utf8,
`m3` text CHARACTER SET utf8,
`m4` text CHARACTER SET utf8,
`m5` text CHARACTER SET utf8,
PRIMARY KEY (`id`),
UNIQUE KEY `uniqueID` (`uniqueID`),
KEY `value` (`value`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci PACK_KEYS=1 DELAY_KEY_WRITE=1 ROW_FORMAT=DYNAMIC
/*!50500 PARTITION BY RANGE COLUMNS(uniqueID)
(PARTITION p1 VALUES LESS THAN ('0') ENGINE = MyISAM,
PARTITION p2 VALUES LESS THAN ('1') ENGINE = MyISAM,
PARTITION p3 VALUES LESS THAN ('2') ENGINE = MyISAM,
PARTITION p4 VALUES LESS THAN ('3') ENGINE = MyISAM,
PARTITION p5 VALUES LESS THAN ('4') ENGINE = MyISAM,
PARTITION p6 VALUES LESS THAN ('5') ENGINE = MyISAM,
PARTITION p7 VALUES LESS THAN ('6') ENGINE = MyISAM,
PARTITION p8 VALUES LESS THAN ('9') ENGINE = MyISAM,
PARTITION p9 VALUES LESS THAN (MAXVALUE) ENGINE = MyISAM) */;
with this partition, i will split the bigint values by the first number - example:
16275214652090176103 would be a part of partition p2
this database will take 100M records :/
thanks advance