I'm trying multiple approaches at writing the same query but the query cache is interfering with my efforts.
I do a query once and it takes 3.5 seconds or so. I do it again and it takes 0.015. I change the JOINs around a bit and it still takes 0.015 seconds, making it very hard for me to see which one is faster.
I tried the following to no avail:
RESET QUERY CACHE;
FLUSH TABLES;
ie. after doing those my query still takes 0.015 seconds.
Any ideas?