Click here to Skip to main content
15,886,919 members
Home / Discussions / C#
   

C#

 
GeneralRe: To Throw or Not To Throw Pin
Eddy Vluggen22-May-13 0:30
professionalEddy Vluggen22-May-13 0:30 
GeneralRe: To Throw or Not To Throw Pin
V.22-May-13 0:38
professionalV.22-May-13 0:38 
GeneralRe: To Throw or Not To Throw Pin
Eddy Vluggen22-May-13 6:55
professionalEddy Vluggen22-May-13 6:55 
GeneralRe: To Throw or Not To Throw Pin
jschell22-May-13 8:25
jschell22-May-13 8:25 
AnswerRe: To Throw or Not To Throw Pin
jschell22-May-13 8:47
jschell22-May-13 8:47 
QuestionFaster way of filling a Dataset Pin
MumbleB21-May-13 8:17
MumbleB21-May-13 8:17 
AnswerRe: Faster way of filling a Dataset Pin
Jasmine250121-May-13 9:29
Jasmine250121-May-13 9:29 
AnswerRe: Faster way of filling a Dataset Pin
SledgeHammer0121-May-13 11:30
SledgeHammer0121-May-13 11:30 
Filling the dataset is always going to be the bottleneck in your code.

That being said...

A few "band-aid" fixes:

1) Your query is pretty basic, but you *might* shave off a bit of time by using a stored procedure instead.
2) You *might* shave off a bit of time by indexing the bus_received_time_stamp column
3) Do you have an enterprise grade SQL server? Or are you running it on some re-purposed podunk PC?
4) Are you connecting to the server via gigabit ethernet?

With those band-aid fixes out of the way...:

1) The real cause of your problem is that you are asking for a LOT of data... 1.4M rows x 20 columns = 28M "cells"... if each cell is only 1 byte, thats 28M bytes = 26MB of data you are asking for. Most likely your average cell size could be 10 bytes or even 100 bytes. Now you are asking for 260MB to 2.6GB of data.
2) Its ***highly*** doubtful you need all that data. What are you doing with it? Displaying it to a user? That's great... but whats a person going to do with 1.4M rows of data? Nothing... a human can't process that amount of data.
3) Are you doing some kind of calculation on the data? If so, you can likely do that on the server and then only retrieve the result... or you can set it to run as a job at midnight or something and have it cached...
4) You could also page the data if the user really needs all that data which again I find **highly** doubtful.

You really need to define your problem better.
GeneralRe: Faster way of filling a Dataset Pin
Eddy Vluggen21-May-13 22:32
professionalEddy Vluggen21-May-13 22:32 
GeneralRe: Faster way of filling a Dataset Pin
SledgeHammer0122-May-13 4:48
SledgeHammer0122-May-13 4:48 
GeneralRe: Faster way of filling a Dataset Pin
Eddy Vluggen22-May-13 5:01
professionalEddy Vluggen22-May-13 5:01 
GeneralRe: Faster way of filling a Dataset Pin
SledgeHammer0122-May-13 6:54
SledgeHammer0122-May-13 6:54 
GeneralRe: Faster way of filling a Dataset Pin
Eddy Vluggen22-May-13 7:15
professionalEddy Vluggen22-May-13 7:15 
GeneralRe: Faster way of filling a Dataset Pin
MumbleB31-May-13 6:46
MumbleB31-May-13 6:46 
AnswerRe: Faster way of filling a Dataset Pin
Pete O'Hanlon21-May-13 23:06
mvePete O'Hanlon21-May-13 23:06 
GeneralRe: Faster way of filling a Dataset Pin
MumbleB31-May-13 6:40
MumbleB31-May-13 6:40 
QuestionValidate textbox (characters) Pin
Member 991209121-May-13 7:55
Member 991209121-May-13 7:55 
AnswerRe: Validate textbox (characters) Pin
Richard MacCutchan21-May-13 21:10
mveRichard MacCutchan21-May-13 21:10 
QuestionTrick to Access derived class method from base Pin
dinesh.17krishnan21-May-13 1:42
dinesh.17krishnan21-May-13 1:42 
AnswerRe: Trick to Access derived class method from base Pin
OriginalGriff21-May-13 1:57
mveOriginalGriff21-May-13 1:57 
AnswerRe: Trick to Access derived class method from base Pin
Keith Barrow21-May-13 3:59
professionalKeith Barrow21-May-13 3:59 
AnswerRe: Trick to Access derived class method from base Pin
Keld Ølykke21-May-13 5:36
Keld Ølykke21-May-13 5:36 
AnswerRe: Trick to Access derived class method from base Pin
Dave Kreskowiak21-May-13 6:05
mveDave Kreskowiak21-May-13 6:05 
AnswerRe: Trick to Access derived class method from base Pin
Bernhard Hiller21-May-13 20:48
Bernhard Hiller21-May-13 20:48 
AnswerRe: Trick to Access derived class method from base Pin
dinesh.17krishnan21-May-13 22:12
dinesh.17krishnan21-May-13 22:12 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.