Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Slow Default.asp load time
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Slow Default.asp load time

 Post Reply Post Reply Page  <12
Author
PrimeraRacer View Drop Down
Groupie
Groupie


Joined: 29 January 2003
Location: United Kingdom
Status: Offline
Points: 83
Post Options Post Options   Thanks (0) Thanks(0)   Quote PrimeraRacer Quote  Post ReplyReply Direct Link To This Post Posted: 25 October 2003 at 11:11am

cheers I'll have a look at removing some stuff maybe, although we do need to keep the active users and active topics stuff as they are a requirement of our users :(

its a bit wierd though cos it take 10 times longer when your not logged in!

Cheers

Kev

Back to Top
fernan82 View Drop Down
Mod Builder Group
Mod Builder Group
Avatar

Joined: 17 November 2002
Location: United States
Status: Offline
Points: 362
Post Options Post Options   Thanks (0) Thanks(0)   Quote fernan82 Quote  Post ReplyReply Direct Link To This Post Posted: 25 October 2003 at 3:12pm
See if you got a lot of PMs in your database and delete them periodically, if you got a whole bunch it takes longer for the database to query for new PMs.

If you need the active users then remove the ones at the bottom, no need to have them twice. Also if your nav bar is the mod that's posted here I just looked at it and it hits the db once for each member to get the username so if you got 10 members online is 10 xtra hits, plus one you use on your site to get the count of active users on the button. It can all be gotten with one, later I will post the one I use in my site as a mod, it gets the amount of members, the amount of guests, and the list of members with 1 hit...
FeRnAN
Back to Top
MadDog View Drop Down
Mod Builder Group
Mod Builder Group
Avatar

Joined: 01 January 2002
Status: Offline
Points: 3008
Post Options Post Options   Thanks (0) Thanks(0)   Quote MadDog Quote  Post ReplyReply Direct Link To This Post Posted: 25 October 2003 at 6:05pm

ljamal,

how would you code all of that into one MSSQL query???

Back to Top
ljamal View Drop Down
Mod Builder Group
Mod Builder Group


Joined: 16 April 2003
Status: Offline
Points: 888
Post Options Post Options   Thanks (0) Thanks(0)   Quote ljamal Quote  Post ReplyReply Direct Link To This Post Posted: 25 October 2003 at 6:47pm
What I did was I removed the hit for the Configuration and placed it into a configuration file. One hit gone.

I created a join to join the categories and forums. That reduces the category and forum calls (which increases with every forum added) to one query.

I returned all the permission for the user in one recordset which I set into an array.

and then I took the above along with the rest of the queries on the page and stuck them into one stored procedure and thus all that information is stuck into one database call.


Ideally, the database would be rewritten as well. Currently the database is as extremely normalized. By removing some of the normalization, it would make for a better design for the application. First I would add a column for the last post and the last author to the forum table along with the topic and post counts. This same method would follow into the topics area. This would allow direct joins between one or two tables rather than complex joins over multiple tables.

For permissions, I would use a stored procedure to create a temp table with the forum information and the base permissions and then update those base permission in the temp table to whatever the permission table altered the value to.

There are more things that I would change but those mentined would increase the performance of the forum by placing more of the SQL processing on the SQL server and less of the processing through ASP and multiple SQL calls. This is something that can easily be done with SQL Server, but impossible with Access. If the goal is to continue to support Access and SQL, then I would suggest moving towards saving recordsets into array so that the database recordsets can queried and set aside for later processing.
Back to Top
 Post Reply Post Reply Page  <12

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.