Topic: Slow query on new forum 1.2.15
Hi,
I have problem with first query on NEW forum:
3.57019 SELECT u.*, g.*, o.logged, o.idle FROM users AS u INNER JOIN groups AS g ON u.group_id=g.g_id LEFT JOIN online AS o ON o.user_id=u.id WHERE u.id=2
0.07237 UPDATE online SET logged=1182514762 WHERE user_id=2
0.07926 SELECT * FROM online WHERE logged<1182514464
0.00008 SELECT t.id FROM pun_1_topics AS t INNER JOIN forums AS f ON f.id=t.forum_id LEFT JOIN forum_perms AS fp ON (fp.forum_id=f.id AND fp.group_id=1) WHERE (fp.read_forum IS NULL OR fp.read_forum=1) AND t.last_post>1182514365 AND t.moved_to IS NULL
0.00007 SELECT COUNT(id) FROM reports WHERE zapped IS NULL
Total query time: 3.72197 s
Have you any ideas to fix this ?