MySQL Forums
Forum List  »  MyISAM

Re: Index key prefix behaviour in MyISAM
Posted by: Hassan Bahrami
Date: August 22, 2024 09:27AM

yes, we have to do that at some point,
but the same question will remain unanswered only with different numbers for InnoDB.
InnoDB limit for a key prefix length is 3072 bytes,

so what will happen if we use a string column longer than 768 mb4-characters (3072 bytes) for a unique key?

Since we have to use the first 768 characters, although the column itself is unique, is the unique index throwing a duplication error in case there is another value with the same first 768 characters?

Options: ReplyQuote


Subject
Views
Written By
Posted
Re: Index key prefix behaviour in MyISAM
70
August 22, 2024 09:27AM


Sorry, only registered users may post in this forum.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.