Answer the question
In order to leave comments, you need to log in
I turn on query_cache on InnoDB - the difference in Waiting Timings (TTFB) is noticeable, I remove query_cache and press F5 - the response does not decrease ... Why?
Hello!
I have a database, it was MyISAM, it became InnoDB (560MB somewhere).
Recently upgraded from 5.5 to 5.7. On the site, the Select operations are mainly used, in connection with which I used for a long time:
query_cache_size = 128M
query_cache_type = ON
query_cache_limit = 1M
query_cache_size = 0
query_cache_type = 0
query_cache_limit = 1M
innodb_file_per_table = 1
table_open_cache = 4096
innodb_open_files = 4096
innodb_buffer_pool_size = 4G # На сервере 32G оперативной памяти
innodb_buffer_pool_instances = 8
innodb_log_file_size = 512M
innodb_log_buffer_size = 2M
innodb_flush_method = O_DIRECT
innodb_flush_log_at_trx_commit = 2
innodb_read_io_threads = 8
innodb_write_io_threads = 8
Answer the question
In order to leave comments, you need to log in
query cache caches the result of a query.
The buffer pool caches data and indexes to reduce HDD/SSD access.
These are completely different caches and they are not interchangeable.
If you need to cache the result - cache in the application.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question