diff options
author | unknown <bell@sanja.is.com.ua> | 2002-09-04 09:40:01 +0300 |
---|---|---|
committer | unknown <bell@sanja.is.com.ua> | 2002-09-04 09:40:01 +0300 |
commit | 479da246b1c188614bb4d5e4b182c2e7aa6312a5 (patch) | |
tree | 245ddfdd629d2618c88fc7d18e815b0e339fa72a /sql/sql_cache.cc | |
parent | 3a9dabd6765e7dad0cbd6949ac275487f72696d2 (diff) | |
download | mariadb-git-479da246b1c188614bb4d5e4b182c2e7aa6312a5.tar.gz |
query cache TODO
Diffstat (limited to 'sql/sql_cache.cc')
-rw-r--r-- | sql/sql_cache.cc | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/sql/sql_cache.cc b/sql/sql_cache.cc index c739b43debb..38b30b683e2 100644 --- a/sql/sql_cache.cc +++ b/sql/sql_cache.cc @@ -278,6 +278,21 @@ TODO list: - Move MRG_MYISAM table type processing to handlers, something like: tables_used->table->file->register_used_filenames(callback, first_argument); + - Make derived tables cachable. + - QC improvement suggested by Monty: + - Add a counter in open_table() for how many MERGE (ISAM or MyISAM) + tables are cached in the table cache. + (This will be trivial when we have the new table cache in place I + have been working on) + - After this we can add the following test around the for loop in + is_cacheable:: + + if (thd->temp_tables || global_merge_table_count) + + - Another option would be to set thd->safe_to_cache_query to 0 + in 'get_lock_data' if any of the tables was a tmp table or a + MRG_ISAM table. + (This could be done with almost no speed penalty) */ #include "mysql_priv.h" |