-
November 12th, 2007, 01:11 AM
#1
DataAdapter.Fill(Dataset) is slow
Hi
I am using ASP.NET 2.0 + C#, we need to retreive the data from DB2 database located in US. We are using ODBC driver to connect to the db2.
As there was problem with the query we are going for dataview in our code using a single query to retreive all the data from the table. But to fill the dataset with 3000 rows its taking around 10 seconds.We need to display the required data in a gridview.
I used the following piece of code
oconnDPSR.Open();
OdbcCommand ocmdDPSR = new OdbcCommand(query, oconnDPSR);
OdbcDataAdapter odpDPSR = new OdbcDataAdapter(ocmdDPSR);
odpDPSR.Fill(dsDPSR);
oconnDPSR.Close();
Can anyone suggest me how to reduce this time of filling so that the report can be generated within 5 seconds.
Thanks in advance
Malathi
-
November 12th, 2007, 09:51 PM
#2
Re: DataAdapter.Fill(Dataset) is slow
What is the actual Query? Maybe it can return less records? Users rarely like to scroll thru 3000 records.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|