School Assignment? Project Due Tomorrow? Chat LIVE With A Programming Expert!

Welcome to Dream.In.Code
Become an Expert!

Join 300,430 Programmers for FREE! Get instant access to thousands of experts, tutorials, code snippets, and more! There are 1,492 people online right now. Registration is fast and FREE... Join Now!




Speeding up SQL

 

Speeding up SQL

xheartonfire43x

1 Jul, 2009 - 06:33 AM
Post #1

D.I.C Regular
***

Joined: 22 Dec, 2008
Posts: 260



Thanked: 2 times
My Contributions
I am building a contact manager and for the home page I am getting really slow load times. All I am doing is pulling the person's ID, First Name, Last Name, and it takes 2188 ms. It all happens in a CFDiv because I also have a searchbox on the right side of the list. The DB has about 300,000 records and the search box has another CFDiv that get the recordcount. So I have this one SQL statement that runs in 2 CFDivs each running about 2188 ms load. Does anyone have any ideas to speed up load time.

User is offlineProfile CardPM
+Quote Post


pirula

RE: Speeding Up SQL

7 Jul, 2009 - 02:00 PM
Post #2

New D.I.C Head
*

Joined: 26 Apr, 2009
Posts: 20



Thanked: 1 times
My Contributions
Your server is somehow overloaded. Where did you post your MySQL database? Do you have hosting account and hosting company provided server to you or you run server from home?

This post has been edited by pirula: 7 Jul, 2009 - 02:01 PM
User is offlineProfile CardPM
+Quote Post

xheartonfire43x

RE: Speeding Up SQL

8 Jul, 2009 - 05:38 AM
Post #3

D.I.C Regular
***

Joined: 22 Dec, 2008
Posts: 260



Thanked: 2 times
My Contributions
QUOTE(pirula @ 7 Jul, 2009 - 02:00 PM) *

Your server is somehow overloaded. Where did you post your MySQL database? Do you have hosting account and hosting company provided server to you or you run server from home?


It is a Microsoft SQL Server 2005 that we have here in our system. It was running slow because we were parsing through 303,000 records ordering it all by last name. We ended up setting up a View for the table and are now down to 1 second load time max.
User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic

Time is now: 11/8/09 12:33AM

Live Help!

Be Social

Dream.In.Code RSS Feed Dream.In.Code LinkedIn Group Follow Us On Twitter Fan Us On Facebook

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month