Bug #60615 | partition otimization 2 - partial index | ||
---|---|---|---|
Submitted: | 24 Mar 2011 5:52 | Modified: | 29 Mar 2011 20:07 |
Reporter: | Roberto Spadim (Basic Quality Contributor) | Email Updates: | |
Status: | Verified | Impact on me: | |
Category: | MySQL Server: Partitions | Severity: | S4 (Feature request) |
Version: | any | OS: | Any |
Assigned to: | CPU Architecture: | Any | |
Tags: | partition index, qc |
[24 Mar 2011 5:52]
Roberto Spadim
[24 Mar 2011 16:42]
Valeriy Kravchuk
So, here we have a request for partition-specific indexes.
[24 Mar 2011 18:26]
Roberto Spadim
yes check that it´s something near to one engine per partition (mix of myisam, innodb, others) in others words, it´s near a optimized 'VIEW' VIEW CODE: (SELECT 0 AS partition_field,a.* FROM table_partition_1 AS a) UNION ALL (SELECT 1 AS partition_field,b.* FROM table_partition_2 AS b) fields definitions from a and b are identical but table a have some index, and table b have others. table a can be innodb, table b can be myisam that´s why (i reported some bugs about it) i think a SHOW PARTITONS, ALTER PARTITON x ON TABLE y, and others DDL are interesting, at table vision (partition engine) we have just field definitions and primary/unique keys (they must be unique for all partitions), it´s something like MERGE engine, but SHOW TABLES can´t show partitions (to avoid user interactiong with it and we lost control about unique keys)
[29 Mar 2011 20:07]
Roberto Spadim
just some doubts... partition, is a engine? or a myisam/innodb feature? the code is inside myisam? maybe could be easy to implement some features if it´s outside myisam/innodb (not fully working, just for a alpha test) and after some improvement and bug fix it´s near a HANDLER of HANDLERS, like 'raid0-linear' in linux devices but with database words (fields - partition prune)