Bug #59769 | partition feature/otimization | ||
---|---|---|---|
Submitted: | 27 Jan 2011 4:00 | Modified: | 27 Jan 2011 13:19 |
Reporter: | Roberto Spadim (Basic Quality Contributor) | Email Updates: | |
Status: | Duplicate | Impact on me: | |
Category: | MySQL Server: Partitions | Severity: | S5 (Performance) |
Version: | 5.1 | OS: | Any |
Assigned to: | CPU Architecture: | Any | |
Tags: | partition, qc |
[27 Jan 2011 4:00]
Roberto Spadim
[27 Jan 2011 4:26]
Valeriy Kravchuk
Thank you for the feature request.
[27 Jan 2011 4:46]
Roberto Spadim
we could implement a string to int partition function for example int = 4bytes "asbasdfasdf" = "asba" = asc("a") + asc("s")<<8 + asc("b")<<16 + asc("a")<<24 since we can have colation, maybe we could do it without asc function, just internal varible value, the problem is the little or big endian... maybe just a asc("a") (first character) could be used, maybe a hash string to int could be done why? a like operation can be optimized for example select * from t where field like 'a%' partitions with 'a' could be selected select * from t where field>'a' partitions without 'a' could be selected maybe a new function converting from string to int could be very nice... in future we could make partition not dependent on unique index... doing it we should have a partition check before starting table (engine=partition)
[27 Jan 2011 11:37]
Mattias Jonsson
Duplicate of bug#50566. Does not seem like a good idea to have multiple syntax for the same thing (i.e OTHER instead of MAXVALUE for RANGE), makes only sense for LIST partitioning. Also there are several feature request in this single bug report: * Partitioning on strings is possible through COLUMNS or KEY partitioning. * Having unique keys not including the partitioning fields is GLOBAL INDEXES which is not yet implemented.
[27 Jan 2011 13:19]
Roberto Spadim
ncie good work!