PhpMyAdmin, is there something you can add to sql to disable caching for this query?

I am trying to test / improve the SQL query for speed, however caching does not show me the true speed.

Is there something I can add to sql to disable this query?

Also, if not, how else can I check and find the true speed?

+4
source share
2 answers

You can add SQL_NO_CACHE in your queries to request that MySQL execute the query and not return the cached result:

SELECT SQL_NO_CACHE * FROM myTable; 

Edit:

There is another way to use dong if you have access to configurations

 setting query_cache_type = 0 or query_cache_type = OFF in MySQL conf 
+3
source

You can use MySQL:

0
source

Source: https://habr.com/ru/post/1337577/


All Articles