I have a MySQL 5.6 DB running in AWS RDS. I'm in the process of refining a few of my indexes. I use FLUSH QUERY CACHE
on my local instance to clear the query cache when doing this kind of development.
I've got a query that takes 10 seconds the first time I call it and 0.2 seconds every time thereafter. I was expecting a post FLUSH QUERY CACHE
call of the query would take 10 seconds but it still only takes 0.2 seconds.
This stackoverflow question points out that on Ubuntu I need to clear the memory disc caching prior to clearing the query cache. AWS RDS unfortunately does not allow terminal access to RDS instances.
How do I clear the query cache on a MySQL 5.6 DB running in AWS RDS?