mirror of
https://github.com/MariaDB/server.git
synced 2025-07-27 18:02:13 +03:00
Subquery cache going on disk management fix: Do not go on disk if hit rate is not good.
sql/sql_expression_cache.cc: Do not go on disk if hit rate is not good. Local hit/miss counters added. sql/sql_expression_cache.h: Local hit/miss counters added.
This commit is contained in:
@ -85,6 +85,8 @@ private:
|
||||
List<Item> &items;
|
||||
/* Value Item example */
|
||||
Item *val;
|
||||
/* hit/miss counters */
|
||||
uint hit, miss;
|
||||
/* Set on if the object has been succesfully initialized with init() */
|
||||
bool inited;
|
||||
};
|
||||
|
Reference in New Issue
Block a user