Hi!
01.08.2011 10:12, Timour Katchaounov пишет:
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?
Heh, that is what I wanted to discuss. On one hand too many parameters
is bad on other hand too simple is not good also...
[skip]
_______________________________________________
Mailing list: https://launchpad.net/~maria-developers
Post to : [email protected]
Unsubscribe : https://launchpad.net/~maria-developers
More help : https://help.launchpad.net/ListHelp