Sort of...

A large IN statement can behave as a subuery whereby the sql server can
(theoretically) be smart enough to reorganize your code to be more
optimized.  

However, try using EXISTS if at all possible.  It's a helluva lot faster
than an IN statement.

-----Original Message-----
From: Scott Weikert [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, October 09, 2002 2:07 PM
To: CF-Talk
Subject: Re: SOT: Limit to SQL IN statement?


I've found that having huge IN lists can reaaaaaaaaally drag the query 
performance dowwwwwnnnn. I haven't found a hard limit...

At 01:04 PM 10/9/2002 -0700, you wrote:
>My concern is... what if there are 1000, 5000, or even 10000 records 
>that need updating?  Is there a limit as to how many elements can be in 
>the list?


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Reply via email to