For the most part the cases in which I need CacheEvaluation to be
false are queries where I am dynamically building the WHERE clause,
based on which criteria is specified by the user. Just to make sure
I'm understanding this setting; is that correct, that I would need
CacheEvaluation to be "false" if I am building a dynamic query?
Thanks,
Bob
--
Bob Silverberg
www.silverwareconsulting.com
Bob
--
Bob Silverberg
www.silverwareconsulting.com
Currently on the wiki it says this:
-----------
When the structure of your TQL is not going to change between calls
(mapped param values may change, but your actual TQL isn't) , you can
tell Transfer to cache the evaluation of the TQL, which gives
significant performance boosts. To do this, you simply need to:
query.setCacheEvaluation(true);
This will allow Transfer to cache the evaluation of TQL -> SQL, so it
doesn't have to be re-done every time the TQL is executed.
By default evaluation caching is set to false.
-----------
Does this not reflect the few extra lines you refer to in your email,
'cause it still seems to say to me what I _thought_?
When you say "When the structure of your TQL is not going to change
between calls (mapped param values may change, but your actual TQL
isn't)", that leads me to believe that dynamic TQL should not be
cached. Is the case you are referring to here one of reusing a query
within a single request, with the mapped params changing? If so,
perhaps saying that would make it clearer. If not, can you provide an
example of a situation in which one _should_
setCacheEvaluation(false)?
Cheers,
Bob
--
Bob Silverberg
www.silverwareconsulting.com
Thanks for asking,
Bob
--
Bob Silverberg
www.silverwareconsulting.com
And I like Elliott's new words too.
Mark