Closed (works as designed)
Project:
Metatag
Version:
7.x-1.0-beta7
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
29 Apr 2013 at 23:10 UTC
Updated:
30 Apr 2013 at 19:42 UTC
I found a slow query in my MySQL processlist: SELECT /*!40001 SQL_NO_CACHE */ * FROM `cache_metatag`
On a large site, my cache_metatag table has well over 100,000 rows so this query moves quite a large amount of data around. Is there some reason we need to select the entire cache_metatag table during a request?
Comments
Comment #1
damienmckennaI have no idea why that query would be ran, if you look for all of the cache_get() calls in the module they *all* pass an ID.
I suggest changing your site's includes/cache.inc to do an extra check for when the $bin value is 'cache_metatag' to see what the $cid value is, see if you can find then use debug_backtrace() to find out where it's coming from.
Comment #2
mfbOK I cannot find a place where it would be generated by the codebase, so I now believe this query was caused by a developer making a database dump of the site? I believe what happened was, not using the --quick or --single-transaction parameters resulted in locking all tables during the slow database dump..
Comment #3
damienmckennaOk, glad to hear it was something simple :)