SQL_NO_CACHE does not work

前端 未结 4 722
情话喂你
情话喂你 2020-12-08 02:55

The first time I run this sql, needs 39 seconds,when I run again and increase SQL_NO_CACHE,does not seem to take effect:

mysql> select count(*) from `deal         


        
4条回答
  •  谎友^
    谎友^ (楼主)
    2020-12-08 03:05

    I was under the impression that including any sort of SQL function that is calculated in the current runtime would not cache. Have you tried doing something like the following?

    select count(*), now() from `deal_expired` where `site`=8&&`area`=122 && endtime<1310444996056;
    

提交回复
热议问题