Hi,
My server is slowing down so I'm looking at slow queries. One of them is found in SH404SEF, please find it below:
SELECT `oldurl`, `newurl`, `id`, `rank`, `dateadd`, soundex(`oldurl`) AS soundex_value FROM `j25_sh404sef_urls` where `newurl` <> "" and `rank` = 0 AND `oldurl` not like '%vmchk%' AND `newurl` not like '%format=feed%' AND `newurl` not like '%format=pdf%' AND `newurl` not like '%print=1%' AND `oldurl` not like '%\_\_404\_\_%' AND ( soundex(oldurl) = soundex('over-ons/algemeen/ervaringen/stilteretraite') OR `oldurl` like '%over%' OR `oldurl` like '%ons%' OR `oldurl` like '%algemeen%' OR `oldurl` like '%ervaringen%' OR `oldurl` like '%stilteretraite%') GROUP BY `oldurl` limit 500
Is there anyway we can improve this query?
Thank you in advance.
Kind regards,
Sergio Wong Chung
My server is slowing down so I'm looking at slow queries. One of them is found in SH404SEF, please find it below:
SELECT `oldurl`, `newurl`, `id`, `rank`, `dateadd`, soundex(`oldurl`) AS soundex_value FROM `j25_sh404sef_urls` where `newurl` <> "" and `rank` = 0 AND `oldurl` not like '%vmchk%' AND `newurl` not like '%format=feed%' AND `newurl` not like '%format=pdf%' AND `newurl` not like '%print=1%' AND `oldurl` not like '%\_\_404\_\_%' AND ( soundex(oldurl) = soundex('over-ons/algemeen/ervaringen/stilteretraite') OR `oldurl` like '%over%' OR `oldurl` like '%ons%' OR `oldurl` like '%algemeen%' OR `oldurl` like '%ervaringen%' OR `oldurl` like '%stilteretraite%') GROUP BY `oldurl` limit 500
Is there anyway we can improve this query?
Thank you in advance.
Kind regards,
Sergio Wong Chung