House of Fusion
Home of the ColdFusion Community

Search cf-talk

December 02, 2008

<<   <   Today   >   >>
Su Mo Tu We Th Fr Sa
   1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30 31       

Search over 2,500 ColdFusion resources here  >>>      
Home /  Groups /  ColdFusion Talk (CF-Talk)

ColdFusion slow database connection to SQL2005

  << Previous Post |  RSS |  Sort Oldest First |  Sort Latest First |  Subscribe to this Group Next >> 
Top  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Kevin Roche
01/22/2008 01:39 PM

The envionment is CF7.0.2 and SQL Server 2005. It appears that queries are taking longer than usual to complete. Even simple queries can take over a second to execute. The test server has no problem executing the same query in 100ms. I supect there is some configuration issue which means that the database connections are dropped after each query, but I am not sure what is going on. The fact that it all works perfectly in test and the same code ran without any problem on CF5 and CF6.1 makes me sure there is somthing off with the configuration but I can't find it and the DBA isn't able to see any problem on the SQL Server either. We are using SQL Authentication rather than NT Authentication. Anyone out there seen somthing like this? Kevin Roche

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Mike Chabot
01/22/2008 01:52 PM

Run SQL Profiler from a remote computer and see if the queries are taking long to execute on the database server. You want to isolate the problem if possible, and knock out the ColdFusion server or the network connection from the list of possible culprits. It isn't clear from your message where the slowness is occurring. -Mike Chabot On Jan 22, 2008 1:27 PM, Kevin Roche <kevin@objectiveinternet.com> wrote: ----- Excess quoted text cut - see Original Post for more -----

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Peterson, Chris
01/22/2008 02:04 PM

Be sure that connection pooling is checked on the datasource in Coldfusion The envionment is CF7.0.2 and SQL Server 2005. It appears that queries are taking longer than usual to complete. Even simple queries can take over a second to execute. The test server has no problem executing the same query in 100ms. I supect there is some configuration issue which means that the database connections are dropped after each query, but I am not sure what is going on. The fact that it all works perfectly in test and the same code ran without any problem on CF5 and CF6.1 makes me sure there is somthing off with the configuration but I can't find it and the DBA isn't able to see any problem on the SQL Server either. We are using SQL Authentication rather than NT Authentication. Anyone out there seen somthing like this? Kevin Roche

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Jochem van Dieten
01/22/2008 06:11 PM

Kevin Roche wrote: > The envionment is CF7.0.2 and SQL Server 2005. > > It appears that queries are taking longer than usual to complete. Even simple queries can take over a second to execute. The test server has no problem executing the same query in 100ms. Is there a difference between both servers in the setting for "Send string parameters as Unicode"? Jochem

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Kevin Roche
01/23/2008 04:27 AM

Thanks guys I will check both those suggestions.

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Kevin Roche
01/23/2008 08:42 AM

I have checked and the settings are exactly the same on live, and test servers. Maintain connections across client requests. is checked Enable Unicode for data sources configured for non-Latin characters. is unchecked All the other parameters under the advanced tab are the same. In fact they have not been changed from the defaults. Anyone have any other ideas?

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Tom Chiverton
01/23/2008 09:03 AM

> Anyone have any other ideas? Broken or bad router, network etc. etc. ? Does a (flood) ping indicate health there ? -- Tom Chiverton Helping to autoschediastically revolutionize compelling metrics on: http://thefalken.livejournal.com **************************************************** This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB.  A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP.  Regulated by The Solicitors Regulation Authority. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged.  If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents.   If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 2500. For more information about Halliwells LLP visit www.halliwells.com.

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Kevin Roche
01/23/2008 12:51 PM

Well I have just replaced the JDBC Drivers with the latest version 3.5. This has reduced the time taken by a huge amount. There is no mention in the docs of there being anything that would do that. The same change on the test server made no difference. Kevin

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Tom Mollerus
01/29/2008 04:56 PM

Kevin, were you using ODBC socket connections, or ODBC connections?  Or, which driver exactly was it that you selected in the CF admin?  I'm having the same problems that you are, and I'm not sure that the upgrade of the JDBC drivers is going to fix the problem.  Thanks! > Well I have just replaced the JDBC Drivers with the latest version 3.5. > This has reduced the time taken by a huge amount. There is no mention > in the docs of there being anything that would do that. > > The same change on the test server made no difference. > > Kevin

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Dana Kowalski
01/29/2008 05:11 PM

is the data source setup as a native sql driver or ODBC? I've run into speed problems in the past when we had to use the ODBC instead of the native sql one. also, if you go into the mgmt. studio and run the same query in the query tool is the response immediate and much faster? If not, maybe check the tables themselves for proper indexing?


<< Previous Thread Today's Threads Next Thread >>

Mailing Lists