Sanja,
Could you explain why these new constants are defines,
and not declared const variables:
=== modified file 'sql/sql_expression_cache.cc'
--- a/sql/sql_expression_cache.cc 2011-07-28 14:10:29 +0000
+++ b/sql/sql_expression_cache.cc 2011-08-01 06:34:55 +0000
@@ -26,6 +26,11 @@
hit_rate = hit / (miss + hit);
*/
#define EXPCACHE_MIN_HIT_RATE_FOR_MEM_TABLE 0.2
+/**
+ Number of cache miss to check hit ratio (maximum cache performance
+ impact in the case when the cache is not applicable)
+*/
+#define EXPCACHE_EARLY_CHECK 200
All of these are potentially possible to tune, why make them
compile-time defines?