Catastrophically poor performance when viewing "IP" dialog & in approval queue

  • Thread starter Thread starter Xon
  • Start date Start date

Xon

Guest
Member
While the "Delete IP usage data after" option does help, MySQL can still pick the utterly wrong indexes which can result in very bad performance.

In the IP dialog, and the approval queue, \XF\Entity\User::getIp calls XF\Repository\IP::getLoggedIp which then triggers this query;

SQL:

Code:

Code:

Code:
SELECT ip
FROM xf_ip
WHERE content_type = 'user'
        AND content_id = 'xxx'
        AND action = 'register'
ORDER BY log_date DESC
LIMIT 1;

However the indexes for the table...

Read more

Continue reading...
 
Top