473,396 Members | 2,059 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Optimize Website

TCB
I am developing a website using .NET 2.0 (classified style website) it
displays a series of records per page (8, using a datagrid with paging)
each record displays a thumbnail of an image that sizes about 6-7k and a
small text description of the item. The Items tamble holds now about 2500
hundred records so that´s 60+ pages. The thing is that all the page when it
load is about 175K. Of those 83K are from images the rest is the text that
makes the HTM file. It feels like the page loads verry slow (about 20 sec in
y 768 kbps internet access) so for the size of the page i guess it is not
the html and images what is making this load so slow but some of the calls I
make to de DB. What can be causing this, the main call i make to the DB is
to get the list of records but the response time is verry slow compared with
a prev version of the same website i have that uses .NET 1.1

How can I cache some of the images that make up the page, this images are
repetitive in al the results pages.

The DB access is exactly the same as in the prev version that works much
faster that this, lstAds_PageIndexChanged calls a DataBind() sub that DOES
get the entire recordset.

TIA!
Dec 19 '05 #1
1 1510

Użytkownik "TCB" <tc******@hotmail.com> napisał w wiadomo¶ci
news:Ok**************@TK2MSFTNGP11.phx.gbl...
I am developing a website using .NET 2.0 (classified style website) it
displays a series of records per page (8, using a datagrid with paging)
each record displays a thumbnail of an image that sizes about 6-7k and a
small text description of the item. The Items tamble holds now about 2500
hundred records so that´s 60+ pages. The thing is that all the page when it
load is about 175K. Of those 83K are from images the rest is the text that
makes the HTM file. It feels like the page loads verry slow (about 20 sec
in y 768 kbps internet access) so for the size of the page i guess it is
not the html and images what is making this load so slow but some of the
calls I make to de DB. What can be causing this, the main call i make to
the DB is to get the list of records but the response time is verry slow
compared with a prev version of the same website i have that uses .NET 1.1

How can I cache some of the images that make up the page, this images are
repetitive in al the results pages.

The DB access is exactly the same as in the prev version that works much
faster that this, lstAds_PageIndexChanged calls a DataBind() sub that DOES
get the entire recordset.


I suggest you turn on tracing, add few custom messages here and there and
see what causes your code to execute too slowly.

From what you say I conclude that the main problem could be the DataBind
call that gets entire resorset each time. If you think of a scalable
application, use custom paging instead. As fas as I know the only way you
get custom paging in 2.0 is to use ObjectDataSource (the old custom paging
model is gone, I wonder why?).

However, there is still the problem of writing smart SQL queries that get
exactly required records. If you need the idea, look at the link below. The
idea is to create a temp table and select records from it - this is still
much faster than copying whole recordset from database server to an
application server.

http://www.dotnetjunkies.com/Article...BDB9B8845.dcik

I hope this helps you,
Wiktor Zychla

Dec 19 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: rg | last post by:
Hello, I use invisionboard on a bid web site (20 000 visitors each day) But my server has high load average. Could you help me to optimize these select command. 1) SELECT p.*,...
0
by: Andreas Falck | last post by:
Hi, I ran the code below on two different versions, 4.0.14 and 4.0.16 respectively, both running RH 7.3 on intel. In version mysql server version 4.0.14 the SELECT privelege suffices for...
0
by: Daniel | last post by:
Hi there, I recently came across an interesting option when right clicking on a project (Right click on the project -> properties -> Configuration Properties ->Build -> Optimize) There is an...
6
by: Silly | last post by:
byte Name = new byte; uint len = (uint)Name.Length; uint err = MyFunction(devID, out Name, out len); When this code is run in release build with optimize code set to true, len is evaluated to...
0
by: Tommy | last post by:
Hello, i hava build a website with a few asp.net-controls(like textbox, button, etc) if i view them in opera-browser, the textbox-controls goes very small -- how can i optimize them?? any...
3
by: Reddy | last post by:
The sql query for my datagrid returns 100, 000 records. But the datagrid should display 20 records per page. I am using datagrid paging, but it is taking too much time for the page to load. Is...
4
by: Huaer.XC | last post by:
>From the following MySQL command: EXPLAIN SELECT * FROM t1 JOIN t2 ON (t1.id = t2.id) JOIN t3 ON t3.name = t1.name WHERE t1.id IN(123, 124); which result is:...
15
by: kenneth | last post by:
I was trying to use multiple thread to optimize my following code, but met some problems, anyone can help me? k are initialized. int computePot() { int i, j; for( i=0; i<500; i++ ) { for(...
0
by: Tom453 | last post by:
If you are selling in foreign markets other than which speaks english, then did you know you should have your website seen on foreign Search engines like Google.de or yahoo.co.jp You do not need...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
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
1
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...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
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,...
0
Oralloy
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,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.