Hi,<br><br>Why you don't use rt 3.8.8 cli client ? <br><br><a href="http://wiki.bestpractical.com/view/CLI">http://wiki.bestpractical.com/view/CLI</a><br><br><span class=" argument-content"><pre>rt ls -o -Created -t ticket "Queue = '4' AND Status != 'resolved' AND \<br>
Created < '30 days ago'" -f id,subject,status,created,lastupdated,owner \<br>| mail -s "Report of tickets 30 days old" username@email<br></pre></span>Regards,<br>Fabrice<br><br><br><div class="gmail_quote">
2010/6/25 Foggi, Nicola <span dir="ltr"><<a href="mailto:NFOGGI@depaul.edu">NFOGGI@depaul.edu</a>></span><br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div>
<br>
<p><font size="2">hey everyone,<br>
<br>
after upgrading from 3.8.6 to 3.8.8 we're getting a slow query on this query:<br>
<br>
use rt3;<br>
SELECT DISTINCT main.* FROM Users main JOIN Principals Principals_1 ON ( Principals_1.id = <a href="http://main.id" target="_blank">main.id</a> ) JOIN CachedGroupMembers CachedGroupMembers_2 ON ( CachedGroupMembers_2.MemberId = Principals_1.id ) JOIN Groups Groups_3 ON ( Groups_3.id = CachedGroupMembers_2.GroupId ) WHERE (Principals_1.Disabled = '0') AND (Principals_1.id != '1') AND (Principals_1.PrincipalType = 'User') AND ((Groups_3.Domain = 'RT::Queue-Role' AND Groups_3.Instance = '3') OR (Groups_3.Domain = 'RT::System-Role')) AND (Groups_3.Type = 'AdminCc') ORDER BY main.Name ASC;<br>
# Time: 100624 22:44:20<br>
# User@Host: rt_user[rt_user] @ rt.internal [10.12.10.72]<br>
# Query_time: 13 Lock_time: 0 Rows_sent: 1 Rows_examined: 0<br>
SELECT GET_LOCK('Apache-Session-dc95ab57bb8d19e23fa6fa70314e3c0e', 3600);<br>
# Time: 100624 22:49:28<br>
<br>
when loading any ticket page. I've verified the cachedgroupmembers3 index is in place:<br>
<br>
show index from CachedGroupMembers;<br>
...<br>
| CachedGroupMembers | 1 | CachedGroupMembers3 | 1 | MemberId | A | 36038 | NULL | NULL | YES | BTREE | NULL |<br>
| CachedGroupMembers | 1 | CachedGroupMembers3 | 2 | ImmediateParentId | A | 36038 | NULL | NULL | YES | BTREE | NULL |<br>
<br>
<br>
but still extremely slow... any ideas? it's pretty bad...<br><font color="#888888">
<br>
Nicola</font></font>
</p>
</div>
<br><br>
Discover RT's hidden secrets with RT Essentials from O'Reilly Media.<br>
Buy a copy at <a href="http://rtbook.bestpractical.com" target="_blank">http://rtbook.bestpractical.com</a><br></blockquote></div><br>