문제

i got an mySQL Table with an uniqueID in MD5 (varchar32). What would be the best way to use Partition on this?

Thanks Advance

도움이 되었습니까?

해결책

you should use

PARTITION BY KEY

because it can accept varchar, whereas HASH needs an expression that return an integer. RANGE partitioning is meaningless since you are using hash values for the key.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top