cfc vs cfinclude. cfc seems slow
Hi,
I'm getting started changing my old cf app to use CFCs.
I have a lot of include files that contain a single query.
so, in my pages I will have something like:
<cfinclude template="/query/selAllUsers.cfm">
I've been reading basic tutorials and a lot of them go through a process where they basically put this query inside a .cfc page and makes <cffunciton> for it.
So in testing I've done this but noticed that it seems so much slower...like 3 times slower!
Is putting these queries inside a CFC not the best thing to do? I understand the appeal of the CFC approach but it seems a bit silly that something that simple would slow my pages down so much.
Thanks.
