> When CF queries a database, does it hold open a thread for > the whole life of the query till the answer set is returned? > > For example, if I have 'Limit simultaneous requests' in the > CF Administrator set to 5, and my database queries take 20 > seconds to execute and return results, does this mean that > 1 of my 5 threads will be busy with this query and > unavailable for the whole 20 seconds? And if I have 5 > concurrent queries, each running for 20 seconds, that all > 5 threads will be busy and unavailable and requests coming > in will go into the queue until the first query returns?
First of all, "Limit Simultaneous Requests" had nothing to do with database access, it's how many CF requests can be running at the same time, so, if you have it set to 5, and 5 requests that take 20 seconds come in, everybody else has to wait... As for database settings, it depends on how you've setup the ODBC - if you've told it to hold the connection open, then it stays open permanently, so a query will return requests faster... As for threads to the database, once the query is done, it drops the thread, but if you've got a template with a LOT of queries, then some of these may hit at very close intervals, which might run you into problems if you're using Access Hope this explains some Philip Arnold Technical Director Certified ColdFusion Developer ASP Multimedia Limited Switchboard: +44 (0)20 8680 8099 Fax: +44 (0)20 8686 7911 www.aspmedia.co.uk www.aspevents.net An ISO9001 registered company. ********************************************************************** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. ********************************************************************** ______________________________________________________________________ This list and all House of Fusion resources hosted by CFHosting.com. The place for dependable ColdFusion Hosting. FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/[email protected]/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

