July 6, 2009 at 3:19 pm
I have a table with 2 52 28 272 rows with 8 columns . Its taking 9 minutes to just retrieve the complete table with a simple select * from table. How do I improve the performance here .
Thanks
July 6, 2009 at 3:23 pm
Are you saying your trying to return 25+ million rows? Is there a sort on the query? How wide is each record? How fast is your network connection?
July 6, 2009 at 3:35 pm
There is no sort in the query.Just a simple select statement .how do I find out the speed of my network connection ?
July 6, 2009 at 5:02 pm
Do you need to a select *? Fewer columns might result in a different index being used.
I guess that running the query directly on the server would remove the overhead of any network traffic?
David
July 6, 2009 at 5:28 pm
What is the "target system" of your 25Mill rows? (flat file, different database/system, maybe even SSMS (???))
What are you trying to do with that rather large amount of data (= what's the business case behind it?)?
July 6, 2009 at 5:40 pm
What are you going to do with all columns and all 25 million rows? You can't possibly work with that much data.
Jeffrey Williams
“We are all faced with a series of great opportunities brilliantly disguised as impossible situations.”
― Charles R. Swindoll
How to post questions to get better answers faster
Managing Transaction Logs
August 13, 2009 at 12:42 pm
I am trying to create a report in visual studio and also using sql server reporting services .
Thanks
August 13, 2009 at 1:32 pm
In that case I'd assume you're doing some kind of grouping with the data.
I'd recommend to do the aggregation on SQL Server side and select the aggregated data into SSRS. You also may use an aggregated select statement rather than a select * ...
AFAIK, a select * from SSRS side actually will copy your 25mill rows from your original database into the SSRS database. I'd assume this will consume most of the 9 minutes you've mentioned.
But without a little more information what you're trying to achieve it's hard to make any more detailed recommendation.
August 13, 2009 at 11:56 pm
Does it take 9 minutes to select it in management studio, or nine minutes to open the report in SSRS?
----------------------------------------------------------------------------------------------
Struggling to find the question?
http://weblogs.sqlteam.com/jeffs/archive/2008/05/13/question-needed-not-answer.aspx
August 14, 2009 at 8:24 am
Accessing, sending, receiving and rendering that amount of data (regardless of actual data size of the 8 columns) is going to take a long time. Period. Either accept that time or work to reduce the data volume. It is possible you might be able to improve performance with much faster IO subsystem (do IO stall analysis to determine if this is issue). You could possibly be blocked if not doing read uncommitted select. Maybe you are on 100Mb network and can get a bit there. But still going to take a long time even if you fix every possible performance hindrance you can address.
Best,
Kevin G. Boles
SQL Server Consultant
SQL MVP 2007-2012
TheSQLGuru on googles mail service
Viewing 10 posts - 1 through 9 (of 9 total)
You must be logged in to reply to this topic. Login to reply