mariadb/storage
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
..
archive cleanup: remove table->status from some engines 2014-10-01 23:38:26 +02:00
blackhole
cassandra
connect Merge 10.0.14 into 10.1 2014-10-15 12:59:13 +02:00
csv
example
federated cleanup: remove unnecessary hack from federated/CMakeLists.txt 2014-10-11 18:53:03 +02:00
federatedx cleanup: remove table->status from some engines 2014-10-01 23:38:26 +02:00
heap Merge 10.0.14 into 10.1 2014-10-15 12:59:13 +02:00
innobase MDEV-6929: Port Facebook Prefix Index Queries Optimization 2014-11-03 11:18:52 +02:00
maria Merge 10.0.14 into 10.1 2014-10-15 12:59:13 +02:00
myisam Merge 10.0.14 into 10.1 2014-10-15 12:59:13 +02:00
myisammrg engine_condition_pushdown has been deprecated 2014-10-12 14:26:27 +04:00
oqgraph Removed files that had been accidentally committed 2014-10-07 11:39:42 +03:00
perfschema Merge 10.0.14 into 10.1 2014-10-15 12:59:13 +02:00
sequence
sphinx Merge 10.0.14 into 10.1 2014-10-15 12:59:13 +02:00
spider Merge 10.0.14 into 10.1 2014-10-15 12:59:13 +02:00
test_sql_discovery
tokudb after-merge fixes 2014-10-15 22:42:08 +02:00
xtradb MDEV-6929: Port Facebook Prefix Index Queries Optimization 2014-11-03 11:18:52 +02:00