473,382 Members | 1,784 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,382 software developers and data experts.

Handling millions of data in the result set

HI All,

We are working on a search application, where the number of records in the
database are in millions. For certain search conditions, the search result
results in more than million records. When the result set is too huge we are
getting the following message :

"Timeout expired. The timeout period elapsed prior to completion of the
operation
or the server is not responding."

Database Used : SQL server 200
Platform used : windows 2000
Languages Used : ASP.NET, C#

When we run the Stored proc which we use to get the search result at the
backend, it takes more than 3 min to return more than million records
otherwise stored proc is fast.

How this can be handled? What is the solution?

Thanks in advance.
Vani
Nov 22 '05 #1
4 1584
Cam
To avoid getting that error message you can set the CommandTimeout property
on the SqlCommand object, I believe that the default is 30 seconds. Try 300
and see where that gets you.

"vani" wrote:
HI All,

We are working on a search application, where the number of records in the
database are in millions. For certain search conditions, the search result
results in more than million records. When the result set is too huge we are
getting the following message :

"Timeout expired. The timeout period elapsed prior to completion of the
operation
or the server is not responding."

Database Used : SQL server 200
Platform used : windows 2000
Languages Used : ASP.NET, C#

When we run the Stored proc which we use to get the search result at the
backend, it takes more than 3 min to return more than million records
otherwise stored proc is fast.

How this can be handled? What is the solution?

Thanks in advance.
Vani

Nov 22 '05 #2
Hi Cam,

Thanks for the immd. response.

We tried extending commandtimeout but we had problem saying that server
unavailable. We found that it may be because of ASP.NET page timeout after
3min.

We are thinking some alternative to this solution, Is it possible to display
the search result before finishing the Stored proc execution fully. say may
be a 1000 records at a time, using Response.flush().

Expecting quick reply.

Thanks,
vani

"Cam" wrote:
To avoid getting that error message you can set the CommandTimeout property
on the SqlCommand object, I believe that the default is 30 seconds. Try 300
and see where that gets you.

"vani" wrote:
HI All,

We are working on a search application, where the number of records in the
database are in millions. For certain search conditions, the search result
results in more than million records. When the result set is too huge we are
getting the following message :

"Timeout expired. The timeout period elapsed prior to completion of the
operation
or the server is not responding."

Database Used : SQL server 200
Platform used : windows 2000
Languages Used : ASP.NET, C#

When we run the Stored proc which we use to get the search result at the
backend, it takes more than 3 min to return more than million records
otherwise stored proc is fast.

How this can be handled? What is the solution?

Thanks in advance.
Vani

Nov 22 '05 #3
Cam
> We are thinking some alternative to this solution, Is it possible to display
the search result before finishing the Stored proc execution fully. say may
be a 1000 records at a time, using Response.flush().


I'd suggest delivering the results in chunks, requesting, say 1000 records
at a time for display and allowing the user to page through the results.

This article seems to detail a method that I've used before for such a
solution:
http://www.samspublishing.com/articl...31263&seqNum=3

Cheers,
C.

Nov 22 '05 #4
thanks Cam for the quick reply.

we will try this out and let u know.

Thanks,
Vani
"Cam" wrote:
We are thinking some alternative to this solution, Is it possible to display
the search result before finishing the Stored proc execution fully. say may
be a 1000 records at a time, using Response.flush().


I'd suggest delivering the results in chunks, requesting, say 1000 records
at a time for display and allowing the user to page through the results.

This article seems to detail a method that I've used before for such a
solution:
http://www.samspublishing.com/articl...31263&seqNum=3

Cheers,
C.

Nov 22 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: WSeeger | last post by:
When creating a new class, is it encouraged to always include error handling routines within your LET and GET procedures? It's seems that most text books never seem to include much about error...
9
by: Hans-Joachim Widmaier | last post by:
Hi all. Handling files is an extremely frequent task in programming, so most programming languages have an abstraction of the basic files offered by the underlying operating system. This is...
4
by: vani | last post by:
HI All, We are working on a search application, where the number of records in the database are in millions. For certain search conditions, the search result results in more than million...
9
by: Phil Jenson | last post by:
I am try to evaluate the most efficient method of handling thousands of simultaneous TCP connects each of which remain connected to the server for hours and pass a small amount of data usually once...
7
by: athos | last post by:
Hi guys, Got a problem now :( please help... now we got a project handling records saved in a table in a sql 2000(will upgraded to 2005 soon) server. every month around a million records will...
14
by: Mr Newbie | last post by:
I am often in the situation where I want to act on the result of a function, but a simple boolean is not enough. For example, I may have a function called isAuthorised ( User, Action ) as ?????...
6
by: DKode | last post by:
I am re-creating an application that is outdated and originally created in C++ This app, reads values in, creates objects for each line and populates fields, then runs some conditions on the...
4
by: Federico | last post by:
Hi everybody, I'm evaluating the possibility of using MySQL 5.0 as a database backend for an application we are doing and I'd like to have hardware requirements rough estimates and/or real world...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.