There's currently a bug in CFMX 7, including 7.02, where if you do a CFSWITCH over a string (not a number), you take a performance hit. You're better off (until the problem is fixed) doing IF/ELSEIF.
 
Shan


From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of boy_trike
Sent: Thursday, October 05, 2006 12:47 PM
To: [email protected]
Subject: [flexcoders] Re: How many cfs's are TOO much

--- In [EMAIL PROTECTED]ups.com, Tom Chiverton <tom.chiverton@...> wrote:
>
> On Wednesday 04 October 2006 22:33, boy_trike wrote:
> > most of my components have 2- 6 cfc (ie. AddRecord, UpdateRecord,
> > DeleteRecord, ReadRecords). Each one has a unique function to call it and
> > a result handler. Is there a better way to handle / group my cfc's.
>
> It would be normal to group all the CRUD (create read update delete) methods
> for an object into one CFC.
>
> --

I am not sure what you mean by NORMAL. Is there any performance hit by having 6 cfc's in a
component vs. 1? Is it better to have one large results function with a switch statement to
handle the results?

thanks
bruce


--
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.407 / Virus Database: 268.12.13/463 - Release Date: 10/4/2006

__._,_.___

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com





SPONSORED LINKS
Software development tool Software development Software development services
Home design software Software development company

Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe

__,_._,___

--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.407 / Virus Database: 268.12.13/463 - Release Date: 10/4/2006

Reply via email to