Re: 2 Performance Questions
From: Samuel Kim (look341_at_gmail.com)
Date: 03/03/05
- Next message: Estevez Emilio via DotNetMonster.com: "ItemTemplate visible"
- Previous message: qqqq: "URL FOrmat String"
- In reply to: Roy: "2 Performance Questions"
- Next in thread: Sonu Kapoor: "Re: 2 Performance Questions"
- Reply: Sonu Kapoor: "Re: 2 Performance Questions"
- Reply: Roy: "Re: 2 Performance Questions"
- Messages sorted by: [ date ] [ thread ]
Date: 3 Mar 2005 03:17:35 -0800
1. If your datagrid contains a large amount of data, then your view
state will be considerably large. This can be checked by viewing the
source code from your browser. If this data is significantly large,
then the page download as well as postback will take time. Also, the
viewstate then needs to be de-serialized on the server each round-trip
adding extra overhead.
I am assuming that a postback takes place - this is probably true
unless you are using some clever javascript to show and hide the cell.
If the above is the issue, then you will have to not load all the
nested grids on page load, but should load them as the "down arrow" is
clicked.
2. Very strange and this may have to do with the way you are
configured.
I recommend that you enable trace (if you have not already done so) or
run the code in debug mode to see which step takes up the time. If it
is the actual SQL call that takes up the time, then you would look at
the network connectivity, compare other db calls, running the stored
proc from query analyser etc... If slowness is caused from elsewhere in
the code, then that is a separate matter.
With the two issues above, you may like to have a look at the network
speed - as both symptoms can be caused by a slow network. E.g. are you
accessing the server on a slow connection?
Hope this helps.
- Next message: Estevez Emilio via DotNetMonster.com: "ItemTemplate visible"
- Previous message: qqqq: "URL FOrmat String"
- In reply to: Roy: "2 Performance Questions"
- Next in thread: Sonu Kapoor: "Re: 2 Performance Questions"
- Reply: Sonu Kapoor: "Re: 2 Performance Questions"
- Reply: Roy: "Re: 2 Performance Questions"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|
|