diff options
author | bell@sanja.is.com.ua <> | 2002-09-04 09:40:01 +0300 |
---|---|---|
committer | bell@sanja.is.com.ua <> | 2002-09-04 09:40:01 +0300 |
commit | 89a6185dd3554b06d8a0b86c176863c000c7cba1 (patch) | |
tree | 245ddfdd629d2618c88fc7d18e815b0e339fa72a /sql/sql_cache.cc | |
parent | 6b20a480a651dbed9b05baff5aaab2cb03ea0791 (diff) | |
download | mariadb-git-89a6185dd3554b06d8a0b86c176863c000c7cba1.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" |