Aldwin,

The cfif itself isn't the source of the slowdown - it's most likely
your database itself.  If tbllisting is of any size, you'll want to
make sure it's indexed by the listingID column.

-Joe

On 5/26/05, Aldwin Sabornido <[EMAIL PROTECTED]> wrote:
> >Show your code - will make it easier to debug.
> >
> >
> >
> >-----Original Message-----
> >From: Aldwin Sabornido [mailto:[EMAIL PROTECTED]
> >Sent: 26 May 2005 15:19
> >To: CF-Talk
> >Subject: <cfif> tag between <cfquery> tag
> >
> >Hello! Great Masters of Cold Fusion..........
> >Can you help me with this problem, it seems to me that <cfif> is slow when
> >you are going to place it inside <cfquery> tag... Please give me your
> >opinion...
> > Aldwin
> 
> 
> 
> Here is my code... Thanks in advance for replying...
> 
> <cfquery name="vbQuery" datasource="DSN">
>      select * from tblisting
>      <cfif listingID gt 0>
>            where listingID = #listingID#
>      </cfif>
> </cfquery>
> 
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:207751
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to