Uber-query clarification.
I just got finished listening to this week ColdFusion Weekly podcast. I was flattered to hear that this post was discussed. However, I would like to make some clarifications on my post, and what was discussed.
First, like Matt (I think it was Matt, its hard for me to tell them apart), I prefer to have the databse do as much work as possible. That was not really possible in the situation I was referring to in my post. In the situation I described, I was inserting or updating data, as much as 10,000 rows at a time. I was NOT retrieving data from the database, looping over the results of that query and performing other queries (typically, that's what JOINs are for).
As I pointed out, I am unsure of whether or not the multiple queries was faster due to the use of <cfqueryparam> or not. I also mentioned that I was going to test to see what would happen if i removed the <cfqueryparam> from the multiple queries. Unfortuantely, I am no longer stationed on-site at that client any longer, so that part of the process shall remain a mystery.
Let me say again, I prefer to let the database do as much work as possible. However, when inserting or updating large sets of data, this may not be the best course of action, and as they guys pointed out, 'it depends'.
Thanx Matt and Peter, keep up the good work.



