Another benefit i have found recently for tcf's (as we've started using
tcf's a little more recently) besides what Ben said is that it makes your
code smaller which means it takes less up less cache space and also it can
actualy make your code faster.

Just about everyone on the list knows an <@for> or <@rows> tag beats out a
for drag and drop action.

Lets say you wanted to get the balance of 50 accounts, now normaly youd have
to set up a for action with a direct dbms in it to do the sql inside that
loop (assuming it wasnt possible to do this with a single sql statement).

if you make a tcf function "GetBalance", you can actualy call that from
within an <@for> or <@rows> tag.

Also with TCF's you are able to do recursion, which otherwise is not
possible.  Its not often needed, but it is a need that has come up in our
development not too long ago and we were glad it was possible.

Also, if your worried about preformance why not upgrade to witango 5?
witango 5 has a better threading model and has a lot of fixes/optomizations.

2 things that come to mind are that various variable scopes preform alot
faster in witango 5 and that in tango 2000 there was a bug when using tcf's
in user scope where it would leak RAM.  That is cleared up in witango 5.

Of course you might want to wait for witango 5.5 which is on the horizon
(dont know exactly how far off) and has a more robust XML parsing /DOM
engine which supports both xpointer and xpath as well as XSLT and a myriad
of other cool new things.

My 2 cents (:

----- Original Message -----
From: "Ben Johansen" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, October 30, 2003 11:27 AM
Subject: RE: Witango-Talk: Re: Stability/Performance


> Ok,
>
> as for 1) and 4) This Q&A from Andre might help
> http://www.stonesteps.ca/projects/witango/faq.asp?qid=q20020514-02
>
> as for 2)
> The 20 files would be very slightly faster due not having to load the
> larger size taf with 20 options. But if you put the 20 querys into a TCF
> then the could be loaded once in let's say an application|domain scope
> and then access by all.
>
> As for 3)
> In a lot of cases there is overhead in instantiating the TCF, but the
> biggest plus to TCF if centralizing code/functionality for ease of
> maintenance
>
> The view here are not necessarily the view of other on the list :-)
>
>
> Ben Johansen - http://www.pcforge.com
> Authorized Witango & MDaemon Reseller
> Available for Witango Developement
>
>
> -----Original Message-----
> From: Jim Kass [mailto:[EMAIL PROTECTED]
> Sent: Thursday, October 30, 2003 11:04 AM
> To: [EMAIL PROTECTED] Com
> Subject: Witango-Talk: Re: Stability/Performance
>
> Hey Folks,
>
> I have a few questions about how Tango operates on a system level (We
> are
> currently using Tango2000/4 on Solaris w/ Oracle8)
>
> I am not expecting an answer on-list per-se, but I am hoping that
> someone
> can direct me to the proper place to do further research.
>
> 1) Supposing that I have PERSISTENTRESTART=true in t4server.ini, if I
> reload
> a taf, and/or hit it from 10 differerent servers simultaneously (or
> within
> seconds of each other), does Tango wait for one 'request' to complete
> before
> processing the next, or does it fork processes or thread itself (which
> one,
> and what impact does this have)?  Could too many requests to the same
> page
> cause server delay?
>
> 2) Is it more efficient in Tango to have ONE file perform 20 different
> queries depending on some kind of user variable (potentially this file
> would
> be accessed by multiple users simultaneously as listed above) or to have
> 20
> files perform a specific query, and direct each user to such a file as
> necessary.
>
> 3) What are the real benefits/tradeoffs of TCF files, and/or how can
> they
> make a TAF that may recieve many simultaneous requests and respond
> different
> depending on user variables more efficient?
>
> 4) What is the primary bottleneck of Tango... i.e., is it multiple
> threads/child-processes, multiple database queries, multiple taf
> requests,
> or just the processing time per taf file?
>
> Thanks,
>
> Jim Kass
> Web Developer
>
> --
> Forestweb: The Source for Industry Intelligence
> Best Content -- Most Relevant -- Best Delivery
> http://www.forestweb.com
> (310) 553 - 0008
>
>
> ________________________________________________________________________
> TO UNSUBSCRIBE: Go to http://www.witango.com/maillist.taf
>
>
> ________________________________________________________________________
> TO UNSUBSCRIBE: Go to http://www.witango.com/maillist.taf

________________________________________________________________________
TO UNSUBSCRIBE: Go to http://www.witango.com/maillist.taf

Reply via email to