Details
-
Task
-
Status: Closed (View Workflow)
-
Minor
-
Resolution: Fixed
Description
https://github.com/facebook/mysql-5.6
commit e8f0052f9b112dc786bf9b957ed5b16a5749f7fd
commit e8f0052f9b112dc786bf9b957ed5b16a5749f7fd
commit 154c579b828a60722a7d9477fc61868c07453d08
Port v5.1 Prefix Index Queries Optimization
Summary:
Feature: Prefix Index Queries Optimization
Optimize prefix index queries to skip cluster index lookup when possible.
Currently InnoDB will always fetch the clustered index (primary key
index) for all prefix columns in an index, even when the value of a
particular record is smaller than the prefix length. This change
optimizes that case to use the record from the secondary index and avoid
the extra lookup.
Also adds two status vars that track how effective this is:
innodb_secondary_index_triggered_cluster_reads:
Times secondary index lookup triggered cluster lookup.
innodb_secondary_index_triggered_cluster_reads_avoided:
Times prefix optimization avoided triggering cluster lookup.
Attachments
Issue Links
- causes
-
MDEV-12255 innodb_prefix_index_cluster_optimization hits debug build assert on UTF-8 columns
- Closed
-
MDEV-12486 Incorrect results with prefix_index_cluster_optimization enabled
- Closed
- is part of
-
MDEV-6039 WebScaleSQL patches
- Closed
- relates to
-
MDEV-28540 Deprecate and ignore the parameter innodb_prefix_index_cluster_optimization
- Closed
-
MDEV-25440 Assertion `cmp_rec_rec(rec, old_rec, offsets, old_offsets, m_index) > 0' failed in PageBulk::insert
- Closed