If I understand your intent, you want to know when the status changed from
any other value to "Fixed". Adding the TR to the first part offers no
real performance advantages that make it worth the added confusion. This:
'Status' = "Fixed" AND 'Status' != 'DB.Status'
works just as well and is easier to understand (for you and the person in
the future that will be trying to reverse engineer it). Look at it this
way - How many other filters do you have where you are not concerned about
the value changing, only what the value is. Do you use (or think about
using) TR in all of those? There is no more of a performance hit in the
above qualification than in any of the others. I still stand by my
opinion, in a good natured sort of way, that the TR value is not needed
and often incorrect.
Thad Esser
Remedy Developer
"Argue for your limitations, and sure enough, they're yours."-- Richard
Bach
"David Durling" <[EMAIL PROTECTED]>
Sent by: "Action Request System discussion list(ARSList)"
<[email protected]>
01/26/2007 06:20 AM
Please respond to
[email protected]
To
[email protected]
cc
Subject
Re: When is TR valid
I appreciate this topic coming up - I wasn't aware of the TR issue when
pushing a value.
After reading this, I'm inclined to use
'TR.Status' = "Fixed" AND 'Status' != 'DB.Status'
though I can't claim any performance advantage with that. Does anyone see
an issue with that? It leaves the transaction check in there (Status !=
DB.Status), with only 1 value to change if you want to update the filter
to
check for another value.
David Durling
Enterprise IT Services
University of Georgia
On Tue, 16 Jan 2007 09:43:47 -0700, L. J. Head <[EMAIL PROTECTED]> wrote:
>Plus....if I remember correctly from Performance and Tuning class back in
>the 4.x days then Remedy will stop processing a qualification on the
first
>failure...so in that example below if 'TR.Status' != "Fixed" then it
never
>even checks the second half of the qualification...which saves another
call
>all together....:)
>
>-----Original Message-----
>From: Action Request System discussion list(ARSList)
>[mailto:[EMAIL PROTECTED] On Behalf Of Opela, Gary L Contr OC-ALC/ITMA
>Sent: Tuesday, January 16, 2007 9:34 AM
>To: [email protected]
>Subject: Re: When is TR valid
>
>I stay away from TR because of the two points below pointed out by
everyone
>else:
>
>TR.Field = $NULL$ if the field is blanked out TR.Field != $NULL$ If field
is
>pushed the same value to itself
>
>The two above points have caused too much heartache, so I stay away.
>
>However, LJ pointed out that if you are doing
>
>'TR.Status' = "Fixed" AND 'DB.Status' != "Fixed
>
>Then using TR will save you a database call if there is no transaction
value
>to start out with. This is very interesting.
>
>Thanks for pointing this out LJ, and redeeming some of the usefulness of
TR.
>
_______________________________________________________________________________
UNSUBSCRIBE or access ARSlist Archives at www.arslist.org ARSlist:"Where
the Answers Are"
***IMPORTANT NOTICE: This communication, including any attachment, contains
information that may be confidential or privileged, and is intended solely for
the entity or individual to whom it is addressed. If you are not the intended
recipient, you should delete this message and are hereby notified that any
disclosure, copying, or distribution of this message is strictly prohibited.
Nothing in this email, including any attachment, is intended to be a legally
binding signature.***
_______________________________________________________________________________
UNSUBSCRIBE or access ARSlist Archives at www.arslist.org ARSlist:"Where the
Answers Are"