Hi There,
I have a stored procedure which takes 7 sec to execute. I am using a
adapter and filling the dataset. Then I bind the datagrid with the
datatable from the dataset. When I test the page against the test
server DB, the page loads pretty fast. When I test the page against the
production server DB, it loads too slowly. The tables against which I
am testing are static tables both in the test DB and the production DB.
I am unable to figure out why it is behaving like this. Can anyone
please help me in this issue?
Thanks a lot.
Samy 5 1678
If this data is static, then I'd suggest caching it to avoid that 7 second
wait. If this data must be dynamic and reloaded each time then I'd suggest
looking at and profiling the SQL to figure out what's taking so long.
-Brock
DevelopMentor http://staff.develop.com/ballen Hi There, I have a stored procedure which takes 7 sec to execute. I am using a adapter and filling the dataset. Then I bind the datagrid with the datatable from the dataset. When I test the page against the test server DB, the page loads pretty fast. When I test the page against the production server DB, it loads too slowly. The tables against which I am testing are static tables both in the test DB and the production DB. I am unable to figure out why it is behaving like this. Can anyone please help me in this issue? Thanks a lot. Samy
Hi,
first of all, is there any chance to optimize the procedure? Do you have
indexes etc query structure correctly and done as much performance in mind
as possible?
When you say you test the Page for production DB, di you also have the page
on different server or on the same?
--
Teemu Keiski
ASP.NET MVP, AspInsider
Finland, EU
"Samy" <sa************@gmail.com> wrote in message
news:11**********************@o13g2000cwo.googlegr oups.com... Hi There, I have a stored procedure which takes 7 sec to execute. I am using a adapter and filling the dataset. Then I bind the datagrid with the datatable from the dataset. When I test the page against the test server DB, the page loads pretty fast. When I test the page against the production server DB, it loads too slowly. The tables against which I am testing are static tables both in the test DB and the production DB. I am unable to figure out why it is behaving like this. Can anyone please help me in this issue?
Thanks a lot. Samy
Hi There,
Thanks for the replies. To be clear, the data I am getting is not
static. Each time the selections (ids ) change and based on the
selections I call the stored proc passing the ids. So the data I
retrieve changes each time.
Secondly, I think the stored proc is optimized. I can post the SProc if
you want me to.
I am testing the page on my local machine against the development
server (different machine) and production server((different machine).
Thanks.
Is the columns/Are the columns that you use as restriction (columns in WHERE
clause) covered by an index? Do you use subqueries or something that would
slow it down, or is it just simple select?
--
Teemu Keiski
ASP.NET MVP, AspInsider
Finland, EU
"Samy" <sa************@gmail.com> wrote in message
news:11*********************@z14g2000cwz.googlegro ups.com... Hi There, Thanks for the replies. To be clear, the data I am getting is not static. Each time the selections (ids ) change and based on the selections I call the stored proc passing the ids. So the data I retrieve changes each time. Secondly, I think the stored proc is optimized. I can post the SProc if you want me to. I am testing the page on my local machine against the development server (different machine) and production server((different machine). Thanks.
Hi There,
I executed the stored proc from a diff machine. And seems the time
drastically reduced to less than a sec. So probably something is wrong
with my machine...
Thanks for all your suggestions. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: James |
last post by:
I've been to websites where if I navigate off a form, trying to get back to
it by hitting the back button gives me a page which says "Warning, page has
expired". It doesn't display the page. I've...
|
by: Lenard Gunda |
last post by:
Hi!
When I make a request to an ASPX file, it is converted into a C# source file
(given, the language is C#). This source can be seen, if I intentionally put
in something bad between <% ... %>,...
|
by: Stuart |
last post by:
Hi there
I am trying to introduce some dynamic control focus in to my asp application
by turning the <body> of the aspx file in to an HTML Server control.
I have read elsewhere that if you...
|
by: Paolo Pignatelli |
last post by:
I have an aspx code behind page that goes something like this in the HTML
view:
<asp:HyperLink id=HyperLink1 runat="server"
NavigateUrl='<%#"mailto:" &...
|
by: jeff_m |
last post by:
Hello all,
I'm having an issue with the following:
I have an .aspx page with two html links that call distinct Javascript
functions.
I also have an iframe in the html of this .aspx page....
|
by: Will Gillen |
last post by:
I know this has probably been asked before, but I can't seem to find a solid
answer in any of the archives. First, before my question, please forgive my
limited knowledge of the event lifecycle...
|
by: Jeff User |
last post by:
Hello
I am using C#, .net1.1
Vis Studio 2003
I am using homeBase.aspx.cs page as a base for several other
aspx/aspx.cs web pages. The base page handles some operations that are
common to all...
|
by: 2291980 |
last post by:
Hello
I have create one page where on perticuler click i am calling 6 js
function one after another.
this all function are ajax function every thing is working fine . But
issue is that it takes...
|
by: epower |
last post by:
Hello,
I am working on an ASP .NET application in Visual Studio 2005 and running
IE7.
This application has a page that contains an iframe which loads an .aspx
page and hyperlinks that...
|
by: taylorcarr |
last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
|
by: aa123db |
last post by:
Variable and constants
Use var or let for variables and const fror constants.
Var foo ='bar';
Let foo ='bar';const baz ='bar';
Functions
function $name$ ($parameters$) {
}
...
|
by: ryjfgjl |
last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
| |