How disable postgresql “Cache” optimization?

后端 未结 3 1863
暖寄归人
暖寄归人 2021-01-01 12:12

I\'m trying to optimize my function.
The thing is when you run the query once you get one result.
Run the query a second time or third time the process time is muc

3条回答
  •  野趣味
    野趣味 (楼主)
    2021-01-01 13:06

    sync; sudo service postgresql stop; echo 1 > /proc/sys/vm/drop_caches; sudo service postgresql start
    

提交回复
热议问题