I’m creating a windows application in which I need to get data using ado.net/(Or any other way using C# if any ). From one table. The database table apparently has around 100000 records and it takes forever to download.
Is there any faster way where I could get data into faster?
I tried the DataReader but still isn’t fast enough.
The data-reader API is about the most direct you can do. The important thing is where is the time?
You can find out by running the query locally on the machine, and see how long it takes. If bandwidth is your limit, then all you can really try is removing columns you don’t actually need (don’t do
select *). Or pay for a fatter pipe between you and the server. In some cases, querying the data locally, and returning it in some compressed form might help – but then you’re really talking about something like a web-service, which has other bandwidth considerations.More likely, though, the problem is the query itself. Often, things like: