mirror of
https://github.com/MariaDB/server.git
synced 2025-08-07 00:04:31 +03:00
Reduced size of POSITION
Replaced Cost_estimate prefix_cost with a double as prefix_cost was only used to store and retrive total prefix cost. This also speeds up things (a bit) as don't have to call Cost_estimate::total_cost() for every access to the prefix_cost. Sizeof POSITION decreased from 304 to 256.
This commit is contained in:
@@ -952,6 +952,9 @@ public:
|
||||
|
||||
double prefix_record_count;
|
||||
|
||||
/* Cost for the join prefix */
|
||||
double prefix_cost;
|
||||
|
||||
/*
|
||||
NULL - 'index' or 'range' or 'index_merge' or 'ALL' access is used.
|
||||
Other - [eq_]ref[_or_null] access is used. Pointer to {t.keypart1 = expr}
|
||||
@@ -983,9 +986,6 @@ public:
|
||||
LooseScan_picker loosescan_picker;
|
||||
Sj_materialization_picker sjmat_picker;
|
||||
|
||||
/* Cumulative cost and record count for the join prefix */
|
||||
Cost_estimate prefix_cost;
|
||||
|
||||
/*
|
||||
Current optimization state: Semi-join strategy to be used for this
|
||||
and preceding join tables.
|
||||
|
Reference in New Issue
Block a user