Can you accomplish the same thing in the db? I would feel pretty confident
saying that unless you've got an unusual table it's going to be faster to
use the db for you data comparison.




On Tue, Jul 13, 2010 at 12:19 PM, Michael Dinowitz <
[email protected]> wrote:

>
> I've got a loop which will need to look up a piece of data on each
> iteration. The data is standardized so there is really just one call
> to the database (outside the loop). I can either do a query of queries
> on each iteration or I can turn the query into a structure and do a
> structure lookup (structkeyexists, etc) on each iteration. I'm
> assuming that the struct lookup will be faster/more efficient even
> after having to turn the query into a structure.
> Anyone have an opinion on this?
>
> Thanks
>
> --
> Michael Dinowitz
> Lead Author - Adobe Coldfusion Anthology
>
> http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:335333
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

Reply via email to