Gents, Converting a table from myisam to ndb via:
ALTER TABLE piwik_log_profiling ENGINE NDBCLUSTER;
This will fail with:
BLOB column 'query' can't be used in key specification with the used table type
Now, if the 'query' field is changed from text to varchar, then I get the following:
Incorrect prefix key; the used key part isn't a string, the used length is longer than the key part, or the storage engine doesn't support unique prefix keys
Original table:
| log_profiling_backup | CREATE TABLE `log_profiling_backup` (
`query` text NOT NULL,
`count` int(10) unsigned DEFAULT NULL,
`sum_time_ms` float DEFAULT NULL,
UNIQUE KEY `query` (`query`(100))
) ENGINE=MyISAM DEFAULT CHARSET=utf8 |