Topic: [postgresql] BIG troubles with active forum and search
So, my AthlonXP 1800+, 512Mb RAM, 1gb SWAP, FreeBSD 6, PostgreSQL 8.1 gets fully stuck when smb searches forum because of this query:
SELECT t.id FROM pun_posts AS p INNER JOIN pun_topics AS t ON t.id=p.topic_id INNER JOIN pun_forums AS f ON f.id=t.forum_id LEFT JOIN pun_forum_perms AS fp ON (fp.forum_id=f.id AND fp.group_id=3) WHERE ( ( fp.read_forum IS NULL OR fp.read_forum=1 )) AND p.id IN(40258,57627,82690,17797,76558,.......!!!30_pages_of_numbers_here!!!..........88788,88772,89720,88784,50439,63671,29725,87854,71274,62780,29053) AND t.forum_id = 10 GROUP BY t.id
-----
So, is there a nice solution for this(except manually flushing search words cache ?