Slow sql queries with wordfence
-
I have three sites with same database and while investigating with slow query log whats bogging down, I found out that all sites reported this as slowest:
SELECT
*,
CASE WHENtype
= ? THEN ? WHENtype
= ? THEN ? WHENtype
= ? THEN ? WHENtype
= ? THEN ? WHENtype
= ? THEN ? WHENtype
= ? THEN ? WHENtype
= ? THEN ? WHENtype
= ? THEN ? WHENtype
= ? THEN ? ELSE ? END AStypeSort
,
CASE WHENtype
= ? THENparameters
WHENtype
= ? THENparameters
WHENtype
= ? THENIP
WHENtype
= ? THENIP
WHENtype
= ? THENIP
WHENtype
= ? THENIP
WHENtype
= ? THENIP
WHENtype
= ? THENIP
WHENtype
= ? THENIP
ELSE ? END ASdetailSort
FROM
******wfblocks7
WHERE
type
IN (?)
AND (
expiration
= ?
ORexpiration
> UNIX_TIMESTAMP()
)
ORDER BY
typeSort
ASC,
id
DESCI have tried to deactivate and reactivate with delete tables option but that did not change. Also repairing the table wont work since it’s InnoDB.
- The topic ‘Slow sql queries with wordfence’ is closed to new replies.