Click here to Skip to main content
15,913,722 members
Home / Discussions / C#
   

C#

 
GeneralRe: Any way to speed up ADO.NET performance? Pin
Dalek Dave10-Mar-11 14:00
professionalDalek Dave10-Mar-11 14:00 
GeneralRe: Any way to speed up ADO.NET performance? Pin
SledgeHammer0110-Mar-11 14:11
SledgeHammer0110-Mar-11 14:11 
GeneralRe: Any way to speed up ADO.NET performance? Pin
SledgeHammer0110-Mar-11 14:08
SledgeHammer0110-Mar-11 14:08 
AnswerRe: Any way to speed up ADO.NET performance? Pin
Luc Pattyn10-Mar-11 14:17
sitebuilderLuc Pattyn10-Mar-11 14:17 
GeneralRe: Any way to speed up ADO.NET performance? Pin
SledgeHammer0110-Mar-11 14:31
SledgeHammer0110-Mar-11 14:31 
GeneralRe: Any way to speed up ADO.NET performance? Pin
Dalek Dave10-Mar-11 14:32
professionalDalek Dave10-Mar-11 14:32 
AnswerRe: Any way to speed up ADO.NET performance? Pin
Luc Pattyn10-Mar-11 14:53
sitebuilderLuc Pattyn10-Mar-11 14:53 
GeneralRe: Any way to speed up ADO.NET performance? Pin
SledgeHammer0110-Mar-11 15:28
SledgeHammer0110-Mar-11 15:28 
On the drive home I came to the realization that I kind of do something similiar to this already.

In our multi-user environment, we have the concept of check-in and check-out of objects. When you check-out an object, it checks-out all the child objects as well and obviously does a "get latest" in the process. This "get latest" code is what I would need to do in this "speed up" mechanism when the user opens the outer most object.

The check-out process does quite a bit to refresh all the dependent objects. You have to grab all the latest dependent objects kind of from the bottom up so you don't run into RI problems. In case you are going to ask, no, I don't get them one at a time Smile | :) . I wrote a few optimized stored procedures that do inner joins to retrieve various levels of dependent objects at once. So we are probably talking about 4 stored procs to refresh the outer most object and all its dependent objects.

Anyways, the last time I ran a timer on a check-out of the outer most object, I think it took 1 - 3 seconds.

So if I only grab subsets of data, I'd introduce a 1 - 3 second delay.

Not much I can do about that I don't think. I think I ran a profiler on the code and saw most of the overhead was just calling the stored procs and merging the data back into the tables.
AnswerRe: Any way to speed up ADO.NET performance? Pin
Luc Pattyn10-Mar-11 15:36
sitebuilderLuc Pattyn10-Mar-11 15:36 
GeneralRe: Any way to speed up ADO.NET performance? Pin
SledgeHammer0118-Mar-11 6:57
SledgeHammer0118-Mar-11 6:57 
GeneralRe: Any way to speed up ADO.NET performance? Pin
Luc Pattyn18-Mar-11 7:11
sitebuilderLuc Pattyn18-Mar-11 7:11 
AnswerRe: Any way to speed up ADO.NET performance? Pin
Pravin Patil, Mumbai10-Mar-11 20:40
Pravin Patil, Mumbai10-Mar-11 20:40 
QuestionReading and Moving Messages in Exchange 2010 Pin
Kevin Marois10-Mar-11 9:35
professionalKevin Marois10-Mar-11 9:35 
AnswerRe: Reading and Moving Messages in Exchange 2010 Pin
Luc Pattyn10-Mar-11 9:56
sitebuilderLuc Pattyn10-Mar-11 9:56 
AnswerRe: Reading and Moving Messages in Exchange 2010 Pin
Pete O'Hanlon10-Mar-11 10:34
mvePete O'Hanlon10-Mar-11 10:34 
QuestionHow i can get the hardware device Driver Information using C# Pin
wasimsharp10-Mar-11 4:06
wasimsharp10-Mar-11 4:06 
AnswerRe: How i can get the hardware device Driver Information using C# Pin
Nuri Ismail10-Mar-11 5:28
Nuri Ismail10-Mar-11 5:28 
AnswerRe: How i can get the hardware device Driver Information using C# Pin
RaviRanjanKr13-Mar-11 2:29
professionalRaviRanjanKr13-Mar-11 2:29 
QuestionHow To Convert it In DataGridView Pin
Anubhava Dimri10-Mar-11 1:15
Anubhava Dimri10-Mar-11 1:15 
AnswerRe: How To Convert it In DataGridView Pin
Pete O'Hanlon10-Mar-11 2:06
mvePete O'Hanlon10-Mar-11 2:06 
AnswerRe: How To Convert it In DataGridView Pin
Luc Pattyn10-Mar-11 2:26
sitebuilderLuc Pattyn10-Mar-11 2:26 
RantMidpointRounding Pin
galache9-Mar-11 21:29
galache9-Mar-11 21:29 
GeneralRe: MidpointRounding Pin
Richard MacCutchan9-Mar-11 22:20
mveRichard MacCutchan9-Mar-11 22:20 
GeneralRe: MidpointRounding Pin
galache9-Mar-11 22:31
galache9-Mar-11 22:31 
GeneralRe: MidpointRounding Pin
Richard MacCutchan9-Mar-11 22:51
mveRichard MacCutchan9-Mar-11 22:51 

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.