<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<style>
<!--
@font-face
        {font-family:Calibri}
@font-face
        {font-family:Tahoma}
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif"}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline}
p
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif"}
pre
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New"}
p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph
        {margin-top:0cm;
        margin-right:0cm;
        margin-bottom:0cm;
        margin-left:36.0pt;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif"}
p.msochpdefault, li.msochpdefault, div.msochpdefault
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Calibri","sans-serif"}
span.emailstyle17
        {font-family:"Calibri","sans-serif";
        color:windowtext}
span.EmailStyle21
        {font-family:"Calibri","sans-serif";
        color:#1F497D}
span.HTMLPreformattedChar
        {font-family:"Courier New"}
span.nf
        {}
span.cm
        {}
.MsoChpDefault
        {font-size:10.0pt;
        font-family:"Calibri","sans-serif"}
@page WordSection1
        {margin:70.85pt 2.0cm 2.0cm 2.0cm}
div.WordSection1
        {}
-->
</style>
</head>
<body lang="IT" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D">I think I got it.</span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D"> </span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D">RT::Tickets exposes
</span><span lang="EN-US" style="font-size:10.0pt; font-family:"Courier New"">DeleteRestriction</span><span lang="EN-US" style="color:#1F497D">, which</span><span lang="EN-US" style="font-size:10.0pt; font-family:"Courier New""></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt; font-family:"Courier New""> </span></p>
<pre><span class="cm"><span lang="EN-US">Takes the row Id of a restriction (From DescribeRestrictions' output, for example.</span></span><span lang="EN-US"></span></pre>
<pre><span class="cm"><span lang="EN-US">Removes that restriction from the session's limits</span></span><span lang="EN-US"></span></pre>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt; font-family:"Courier New""> </span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D"> </span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D"> </span></p>
<div><br>
<br>
<div align="left">
<p style="font-family:Calibri,Sans-Serif; font-size:10pt"><span style="color:#000000; font-weight:bold">Alberto Scotto</span>
<span style="color:#808080"></span><br>
<br>
<span style="color:#000000"><img border="0" alt="Blue" src="cid:37e22f2922684c38953767791ce80654" style="margin:0px">
</span><br>
<span style="color:#808080">Via Cardinal Massaia, 83<br>
10147 - Torino - ITALY <br>
phone: +39 011 29100 <br>
<a href="al.scotto@reply.it" target="" style="color:blue; text-decoration:underline">al.scotto@reply.it</a>
<br>
<a title="" href="www.reply.it" target="" style="color:blue; text-decoration:underline">www.reply.it</a>
</span><br>
 </p>
</div>
<div style="border:none; border-top:solid #B5C4DF 1.0pt; padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal" style="margin-left:35.4pt"><b><span lang="EN-US" style="font-size:10.0pt; font-family:"Tahoma","sans-serif"">From:</span></b><span lang="EN-US" style="font-size:10.0pt; font-family:"Tahoma","sans-serif""> Scotto Alberto
<br>
<b>Sent:</b> sabato 21 luglio 2012 20:12<br>
<b>To:</b> rt-users@lists.bestpractical.com<br>
<b>Subject:</b> How to efficiently filter tickets with LimitXXX methods of RT::Tickets?</span></p>
</div>
</div>
<p class="MsoNormal" style="margin-left:35.4pt"> </p>
<div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt"><span lang="EN-US" style="color:black">Hi all,</span><span style="color:black"></span></p>
<p class="MsoNormal" style="margin-left:35.4pt"><span lang="EN-US" style="color:black"> </span><span style="color:black"></span></p>
<p class="MsoNormal" style="margin-left:35.4pt"><span lang="EN-US" style="color:black">I'm customizing the script
</span><span style="color:black"><a href="http://requesttracker.wikia.com/wiki/RtUnifiedreminder" target="_blank">http://requesttracker.wikia.com/wiki/RtUnifiedreminder</a> to send a daily report about SLA, with the overdue tickets.</span></p>
<p class="MsoNormal" style="margin-left:35.4pt"><span style="color:black">I have a series of nested loops, the main is "for each QueueAdminCC send the report to him/her".</span></p>
<p class="MsoNormal" style="margin-left:35.4pt"><span style="color:black">In order to find the overdue tickets that are up to him/her, I'm using RT::Tickets methods: LimitStatus, LimitDue, LimitQueue.</span></p>
<p class="MsoNormal" style="margin-left:35.4pt"><span style="color:black"> </span></p>
<p class="MsoNormal" style="margin-left:35.4pt"><span style="color:black">Here is the question.</span></p>
<p class="MsoNormal" style="margin-left:35.4pt"><span lang="EN-US" style="color:black">Is there a way to “cache” some parts of filtering so that I don’t have to start filtering from the ground but use the results previously computed?</span><span style="color:black"></span></p>
<p class="MsoNormal" style="margin-left:35.4pt"><span lang="EN-US" style="color:black">If APIs don't give anything specific, I think the only way is cloning the object RT::Tickets after applying the general filters?</span><span style="color:black"></span></p>
<p class="MsoNormal" style="margin-left:35.4pt"><span lang="EN-US" style="color:black">In the latter case, would you please give me some hints? Sorry for the dumb question, I'm quite n00b with Perl.</span><span style="color:black"></span></p>
<p class="MsoNormal" style="margin-left:35.4pt"><span style="color:black"> </span></p>
<p class="MsoNormal" style="margin-left:35.4pt"><span lang="EN-US" style="color:black">Thank you all!</span><span style="color:black"></span></p>
<p class="MsoNormal" style="margin-left:35.4pt"><span style="color:black"> </span></p>
</div>
</div>
<p class="MsoNormal" style="margin-right:0cm; margin-bottom:12.0pt; margin-left:35.4pt">
<span style="font-size:12.0pt; font-family:"Times New Roman","serif""> </span></p>
<p style="margin-left:35.4pt"><b><span style="font-size:10.0pt; font-family:"Calibri","sans-serif"; color:black">Alberto Scotto</span></b><span style="font-size:10.0pt; font-family:"Calibri","sans-serif"">
<br>
<br>
<span style="color:black"><img border="0" width="140" height="50" id="_x0000_i1025" src="cid:image001.png@01CD6B45.B77EFA40" alt="Blue"></span><br>
<span style="color:gray">Via Cardinal Massaia, 83<br>
10147 - Torino - ITALY <br>
phone: +39 011 29100 <br>
<a href="al.scotto@reply.it">al.scotto@reply.it</a> <br>
<a href="www.reply.it" title="">www.reply.it</a> </span><br>
 </span></p>
</div>
<br>
<hr>
<font face="Arial" color="Gray" size="1"><br>
--<br>
The information transmitted is intended for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information
 by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from any computer.<br>
</font>
</body>
</html>