Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

255 character keys in tables #4

Open
JohnDBarrett opened this issue Sep 8, 2015 · 0 comments
Open

255 character keys in tables #4

JohnDBarrett opened this issue Sep 8, 2015 · 0 comments

Comments

@JohnDBarrett
Copy link
Collaborator

Many tables have 255 character ID fields used as indexes and keys. In some character sets, one character can translate to up to 4 bytes. This is compounded in some tables (PRODUCT_CAT for example) where multiple IDs are used to create a unique key.

The storage and processing overhead of this is very significant and optimisation is needed.

This can effect some MySQL installations using the MyISAM engine. The CREATE TABLE instruction can fail with the message "Specified key was too long; max key length is 1000". The solution to this is to change the default DB engine to innoDB.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant