Skip to main content

MAX_KEY_LENGTH

Constant MAX_KEY_LENGTH 

Source
pub const MAX_KEY_LENGTH: u32 = 768;
Expand description

The longest key the probe bounds cover, in characters. https://dev.mysql.com/doc/refman/8.4/en/innodb-limits.html caps an index key at 3072 bytes, or 768 utf8mb4 characters. Longer keys (possible through prefix indexes or narrower charsets) are not supported.