I have used components that nest many levels, using a similar caching mechanism to what you describe. I have not had any performance problems.

I suspect the issue is not the nesting itself, but rather what the components do and/or how they exchange data with the "outside world" (or, possibly, some totally unrelated part of your app).

What does the detailed debugging info tell you about where the bottlenecks are?





Jeffry Houser wrote:


Has anyone had any experience (or performance issues) with the use of nested CFCs?


For example:

I have a user component. That User component can have any number of profiles, so the User Component contains an array of Profile Components. Each profile can have two addresses (say a billing address and a shipping address), so the Profile component contains 2 address components. Etc.. etc..

 This might be a representation in ASCII glory:

User
|
|--UserProfiles (Array of Profiles)
|   |
|   |---Billing Address (Address component)
|   |-- Shipping Address (Address component)
|
|--Mailing Address  (Address component)

This example goes 3 levels deep. The full model, has CFCs nested up to 5 levels deep. Most of the data is loaded when a user logs in and stored in the session scope, and then can all be accessed via "session.user./whatever"

/ The application appears to be equally slow on both CFMX and BlueDragon, although I haven't done any serious performance testing.

--
Jeffry Houser, Web Developer, Writer, Songwriter, Recording Engineer
AIM: Reboog711 | Phone: 1-203-379-0773
--
My Books: <http://www.instantcoldfusion.com <http://www.instantcoldfusion.com/>>
My Recording Studio: <http://www.fcfstudios.com <http://www.fcfstudios.com/>>
My Energetic Acoustic Rock Band: <http://www.farcryfly.com <http://www.farcryfly.com/>>
--
When did Reality Become TV


----------------------------------------------------------
You are subscribed to cfcdev. To unsubscribe, send an email
to [EMAIL PROTECTED] with the words 'unsubscribe cfcdev' in the message of the email.


CFCDev is run by CFCZone (www.cfczone.org) and supported
by Mindtool, Corporation (www.mindtool.com).

An archive of the CFCDev list is available at www.mail-archive.com/[EMAIL PROTECTED]

Reply via email to