mariadb/storage/xtradb/row
Jan Lindström cb37c55768 MDEV-6929: Port Facebook Prefix Index Queries Optimization
Merge Facebook commit 154c579b828a60722a7d9477fc61868c07453d08
and e8f0052f9b112dc786bf9b957ed5b16a5749f7fd authored
by Steaphan Greene from https://github.com/facebook/mysql-5.6

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.
2014-11-03 11:18:52 +02:00
..
row0ext.cc Percona-Server-5.6.14-rel62.0 merge 2013-12-22 17:06:50 +01:00
row0ftsort.cc MDEV-6812: Merge Kakao: Add global status variables which tell 2014-09-30 14:50:34 +03:00
row0import.cc Merge the server part of MySQL WL#5522 - InnoDB transportable tablespaces. 2014-02-02 10:00:36 +01:00
row0ins.cc Merge 10.0.14 into 10.1 2014-10-15 12:59:13 +02:00
row0log.cc MDEV-6812: Merge Kakao: Add global status variables which tell 2014-09-30 14:50:34 +03:00
row0merge.cc Enhance row-merge sort progress logging. 2014-10-22 16:14:25 +03:00
row0mysql.cc Merge 10.0.14 into 10.1 2014-10-15 12:59:13 +02:00
row0purge.cc Percona-Server-5.6.14-rel62.0 merge 2013-12-22 17:06:50 +01:00
row0quiesce.cc xtradb 5.6.17-65.0 2014-05-07 17:33:33 +02:00
row0row.cc Percona-Server-5.6.14-rel62.0 merge 2013-12-22 17:06:50 +01:00
row0sel.cc MDEV-6929: Port Facebook Prefix Index Queries Optimization 2014-11-03 11:18:52 +02:00
row0uins.cc xtradb 5.6.17-65.0 2014-05-07 17:33:33 +02:00
row0umod.cc xtradb 5.6.17-65.0 2014-05-07 17:33:33 +02:00
row0undo.cc Percona-Server-5.6.14-rel62.0 merge 2013-12-22 17:06:50 +01:00
row0upd.cc Merge 10.0.14 into 10.1 2014-10-15 12:59:13 +02:00
row0vers.cc xtradb 5.6.17-65.0 2014-05-07 17:33:33 +02:00