Now this is just my opinion.

How many <cfinclude> are to many? When you can't keep up with what is on
your page would be a good indication that you have to many.

As for the degradation of the tag, it is almost non measurable as long as
the file that the tag is pointing to is easily accessible (like on the same
computer). I have used as many as 12 <cfinclude> on a single page. Although
that is not a normal thing for me but I didn't see any degradation at all.

It might behoove you to look into coding with the FuseBox methodology.
http://www.fusebox.com/

Good luck!

Regards,
James Lathem
Web Developer and
Certified Allaire ColdFusion Developer

McRae Communications
Office: 770.460.7277 Ext. 227
Fax: 770.460.0963

-----Original Message-----
From: Perez, Bismark [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, June 12, 2001 2:29 PM
To: CF-Talk
Subject: How many <cfincludes> are to many?

Does anybody knows how many <cfinclude> are to many and how much (if any)
degradation on the system speed it does?

My approach is to have all the queries in a separate directory and then
include them as needed, now if one template part can be saved as a separate
template (because it can be re-used) and then included I do that, but I also
separate the query that include has into its own file, so in processing one
template the system will have to include that "re-usable" template and then
include the query for that one making it two includes, now it can be that
one base template might have 5 "re-usable" includes each with its own
separate query file.

Does anyone knows what's the toll this approach takes on the server?

Bismarck Perez
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to