mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
Removed /2 of InnoDB ref_per_key[] estimates
The original code was there to favor index search over table scan. This is not needed anymore as the cost calculations for table scans and index lookups are now more exact.
This commit is contained in:
@@ -151,7 +151,7 @@ INDEX_NAME a_key
|
||||
SEQ_IN_INDEX 1
|
||||
COLUMN_NAME a
|
||||
COLLATION A
|
||||
CARDINALITY 2
|
||||
CARDINALITY 1
|
||||
SUB_PART NULL
|
||||
PACKED NULL
|
||||
NULLABLE YES
|
||||
@@ -204,7 +204,7 @@ INDEX_NAME a_key
|
||||
SEQ_IN_INDEX 1
|
||||
COLUMN_NAME a
|
||||
COLLATION A
|
||||
CARDINALITY 3
|
||||
CARDINALITY 1
|
||||
SUB_PART NULL
|
||||
PACKED NULL
|
||||
NULLABLE YES
|
||||
@@ -257,7 +257,7 @@ INDEX_NAME a_key
|
||||
SEQ_IN_INDEX 1
|
||||
COLUMN_NAME a
|
||||
COLLATION A
|
||||
CARDINALITY 2
|
||||
CARDINALITY 1
|
||||
SUB_PART NULL
|
||||
PACKED NULL
|
||||
NULLABLE YES
|
||||
@@ -522,7 +522,7 @@ INDEX_NAME a_key
|
||||
SEQ_IN_INDEX 1
|
||||
COLUMN_NAME a
|
||||
COLLATION A
|
||||
CARDINALITY 10
|
||||
CARDINALITY 5
|
||||
SUB_PART NULL
|
||||
PACKED NULL
|
||||
NULLABLE YES
|
||||
|
Reference in New Issue
Block a user