Microsoft SQL Server
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsDatabasesMicrosoft SQL Server

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old May 9th, 2003, 12:26 PM
gCal50 gCal50 is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: May 2003
Posts: 1 gCal50 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Question Large Table Query - need more speed

i have several tables that are queried at one time thru joins. all the tables are fairly large (millions of rows), except one, which particularly big.

i have indexes on the tables and have run Query Analyzer's index tuning. it does not show any changes that are needed. i have reviewed the execution plan to see that the one table is the problem

does anyone have any suggestions, comment, advice for speeding up the queries? i suspect that a hardware change may be needed.

thanks in advance

Reply With Quote
  #2  
Old May 10th, 2003, 10:51 AM
stumpy's Avatar
stumpy stumpy is offline
May contain nuts.
Dev Articles Regular (2000 - 2499 posts)
 
Join Date: Aug 2002
Location: Sydney, AU
Posts: 2,058 stumpy User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 h 8 m 57 sec
Reputation Power: 9
Send a message via ICQ to stumpy Send a message via MSN to stumpy
Unfortunately big tables and complex queries will take time. Exactly how long depends on quite a few factors - indexing, performance tuning, hardware (the more RAM the better), and most importantly, the actual RDBMS itself. Obviously the more powerful the RDBMS, the more control you shold have over being able to fine tune your query.

For millions-of-rows tables, you'd want to be using powerful DB systems like Oracle, SQL Server, and PostgreSQL. These RDBM's include tools to optimize your queries.
__________________
DevArticles Moderator
BlueSix - Web Development and Consulting

Reply With Quote
  #3  
Old May 14th, 2003, 04:51 AM
ron ron is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: May 2003
Location: Germany
Posts: 7 ron User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Timing

Hi,
my experience tells me: if you have large queries with joined tables and lots of columns, try to do the following:

question each column if you realy need it.
select only the ones you need for the further process or display.

if you join large tables and you have an "order by" statement, it takes at least two steps for the database to deliver.

If the join reduces the number of rows, it coul be wise to do more than one select statement. This gives more workload to the middle tier, but releases the databse a little. And, and this is important, it reduces the traffic.

Most of the times I had response problems, the backend did it's job, but the transfer was so much, that it took too long.

Resume: reduce the datatransfer first as much as possible and you'll have much better results.

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsDatabasesMicrosoft SQL Server > Large Table Query - need more speed


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway
Stay green...Green IT