<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br>On Jul 18, 2008, at 5:37 AM, Tom Lanyon wrote:<br><br><blockquote type="cite">For what its worth, I believe this is a big performance hit on RT<br></blockquote><blockquote type="cite">3.6.x too, so I'd recommend fixing rather than downgrading. :)<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">I witnessed this query with a high execution rate on RT 3.6.1.<br></blockquote><br>Hello,<br>We are running RT 3.6 with a database with over 190 thousand tickets on PgSQL.<br>We added the following indexes to the databse:<br><br>CREATE INDEX groupstest1 ON Groups (lower(Domain));<br>CREATE INDEX groupstest2 ON Groups (lower(Type));<br>CREATE INDEX groupstest3 ON Groups (lower(Domain),Instance,lower(Type),id, Name);<br>CREATE INDEX groumemberstest1 ON groupmembers (groupid);<br>CREATE INDEX groumemberstest2 ON groupmembers (memberid);<br>CREATE INDEX userstest1 ON Users (lower(name));<br><br>PS: You should change the INDEX name, I just copied this from the test server.<br><br>Paulo F. Andrade<br><a href="mailto:pauloandrade@ist.utl.pt">pauloandrade@ist.utl.pt</a><br><br><br><br></body></html>