mariadb/storage/xtradb
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
..
api XtraDB 5.6.20-68.0 2014-09-11 16:44:16 +02:00
btr Merge 10.0.14 into 10.1 2014-10-15 12:59:13 +02:00
buf MDEV-6932: Enable Lazy Flushing 2014-10-29 13:49:12 +02:00
data
dict MDEV-6929: Port Facebook Prefix Index Queries Optimization 2014-11-03 11:18:52 +02:00
dyn
eval
fil MDEV-6968: CREATE TABLE crashes with InnoDB plugin 2014-10-29 11:07:37 +02:00
fsp
fts XtraDB 5.6.20-68.0 2014-09-11 16:44:16 +02:00
fut
ha
handler MDEV-6929: Port Facebook Prefix Index Queries Optimization 2014-11-03 11:18:52 +02:00
ibuf xtradb 5.6.17-65.0 2014-05-07 17:33:33 +02:00
include MDEV-6929: Port Facebook Prefix Index Queries Optimization 2014-11-03 11:18:52 +02:00
lock Merge 10.0.14 into 10.1 2014-10-15 12:59:13 +02:00
log Merge 10.0.14 into 10.1 2014-10-15 12:59:13 +02:00
mach
mem MDEV-6184 10.0.11 merge 2014-05-06 10:21:34 +02:00
mtr MDEV-6184 10.0.11 merge 2014-05-06 10:21:34 +02:00
mysql-test/storage_engine Changes in storage_engine test suite: 2014-09-15 20:33:11 +04:00
os MDEV-6968: CREATE TABLE crashes with InnoDB plugin 2014-10-29 11:07:37 +02:00
page MDEV-6935: Change the default value for innodb_log_compressed_pages to false 2014-10-29 11:07:38 +02:00
pars MDEV-6929: Port Facebook Prefix Index Queries Optimization 2014-11-03 11:18:52 +02:00
que
read xtradb-5.6.19-67.0 2014-08-06 19:57:06 +02:00
rem MDEV-6247: Merge 10.0-galera to 10.1. 2014-08-26 15:43:46 +03:00
row MDEV-6929: Port Facebook Prefix Index Queries Optimization 2014-11-03 11:18:52 +02:00
srv MDEV-6929: Port Facebook Prefix Index Queries Optimization 2014-11-03 11:18:52 +02:00
sync Merge 10.0.14 into 10.1 2014-10-15 12:59:13 +02:00
trx MDEV-6929: Port Facebook Prefix Index Queries Optimization 2014-11-03 11:18:52 +02:00
usr
ut MDEV-5834: Merge Kakao Defragmentation implementation to MariaDB 10.1 2014-08-06 15:28:58 +03:00
CMakeLists.txt Merge 10.0.14 into 10.1 2014-10-15 12:59:13 +02:00
COPYING.Google
COPYING.Percona
Doxyfile
ha_innodb.def