MySQL 8 follows the following rules for non-spatial index characteristics:
- A NULL value is allowed for an indexed column in the case of InnoDB, MyISAM, and MEMORY storage engines.
- The column prefix length must be specified in the case of each spatial column, if it exists under a non-spatial index. The prefix length will be considered in terms of bytes.
- Except for ARCHIVE, it is supported for all the storage engines which support spatial columns.
- A NULL value is allowed for this index, unless it is defined as a PRIMARY key.
- For an InnoDB table, run the ANALYZE TABLE statement after creating an index on that table, if the innodb_stats_persistent setting is enabled.
- The index type will depend on the storage ...