Hi Folks,<div><br></div><div>I have problems with a couple of user generated queries that drastically slow down the RT database.</div><div><br></div><div>The database is MySQL 5 running on a separate server from RT ( 4.0.5 )</div>
<div><br></div><div>The queries in question are of a similar format to the following,</div><div><br></div><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div>Queue = 'Solutions' </div><div>AND (  Status = 'new' OR Status = 'open' ) </div>
<div>AND (  Requestor.EmailAddress = '<a href="mailto:user1@site.net.nz">user1@site.net.nz</a>' OR Requestor.EmailAddress = '<a href="mailto:user2@site.net.nz">user2@site.net.nz</a>' OR Requestor.EmailAddress = '<a href="mailto:user3@site.net.nz">user3@site.net.nz</a>' OR Requestor.EmailAddress = '<a href="mailto:user4@site.net.nz">user4@site.net.nz</a>' OR Requestor.EmailAddress = '<a href="mailto:user5@site.net.nz">user5@site.net.nz</a>' OR Requestor.EmailAddress = '<a href="mailto:user6@site.net.nz">user6@site.net.nz</a>' OR Requestor.EmailAddress = '<a href="mailto:user7@site.net.nz">user7@site.net.nz</a>' )</div>
<div><br></div></blockquote>With only a few email addresses entered the query runs in an acceptable time, however as the number increase the query almost forces the database to a standstill.<br><div><br></div><div>Does anyone have any ideas on how I can make any improvements on performance?</div>
<div><br></div><div>Thanks in advance.</div><div><br></div><div>Cheers,</div><div>Glyn</div><div><br></div><div><br></div>