Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - urgent strange problem
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

urgent strange problem

 Post Reply Post Reply
Author
sunandoghosh View Drop Down
Newbie
Newbie


Joined: 21 February 2005
Status: Offline
Points: 1
Post Options Post Options   Thanks (0) Thanks(0)   Quote sunandoghosh Quote  Post ReplyReply Direct Link To This Post Topic: urgent strange problem
    Posted: 22 February 2005 at 6:01am
Hi friends,
 
I am confronted with a very unique problem when trying to upload web wiz forum on my site and use it.
 
The problem is when i uploaded web wiz forum on my site with access as database, it runs extremely fast but when I upload the same forum with sql as database (which is what i desire considering merits of sql over access), i find that the speed of forum REDUCES tremedously.

In fact many times with sql as databse it does not open whereas with access as database, it always opens very fast.

This is quite a paradox as it should have worked the other way round.

I am still confused in the light of above as to whcih database to use for my forum anticipating large mebers in long run using the forum on my site.

any inputs, comments, suggestions will be highly appreciated.

Thanks once again.

sunando

Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post Posted: 22 February 2005 at 6:21am
What are the errors you are getting? (if you use IE you may need to turn of friendly HTTP error messages)

If you are having speed problems with SQL Server and timeout problems then it can be because of a number of issues.

It could be network congestion problems, the SQL Server is usually located on a different server to the web server, if there are problems on the network then this can course slowness.

You usually want the SQL Server to be located on the same network as the web server, if you are trying to connect across the Internet it will always be very slow.

Another problem could be that your host has packed to many SQL Server databases onto the same server and it is overloaded. Upgrading the server or having your database placed on a less populated SQL Server may improve things.
Back to Top
dpyers View Drop Down
Senior Member
Senior Member


Joined: 12 May 2003
Status: Offline
Points: 3937
Post Options Post Options   Thanks (0) Thanks(0)   Quote dpyers Quote  Post ReplyReply Direct Link To This Post Posted: 22 February 2005 at 9:45am
Also, for your connection string, use sql server authentication, not windows authentication and stay away from dsn's.

Lead me not into temptation... I know the short cut, follow me.
Back to Top
sifra View Drop Down
Newbie
Newbie
Avatar

Joined: 20 March 2005
Location: United States
Status: Offline
Points: 4
Post Options Post Options   Thanks (0) Thanks(0)   Quote sifra Quote  Post ReplyReply Direct Link To This Post Posted: 21 March 2005 at 1:28am
I love the forum, but the SQL implementation definitely needs work.
 
I have run SQL Profiler traces on the following pages, and the problem is mainly server side cursors.  Each cursor fetch is a round trip call to the server, and many of the pages have hundreds of database calls per page.
 
We have found when the number of users on an active forum (>150,000 threads per quarter) exceeds a few dozen users, the ability of SQL Server to keep up with the cursor fetch demand, even on a co-located server is severely challenged.
 
default.asp, forum_topics.asp, active_topics.asp are prime examples.
 
Another problem is revealed when you run the following command in Query Analyzer
 
EXEC sp_MSforeachtable @command1="sp_help '?'"
 
Notice the twins?  They do not improve read performance, but definitely hurt updatable operations.
 
The table structure is also very poor, with fixed data types intermixed with variable length types.  For example, all bit data types should be contiguous. Why?  SQL packs contiguous bits into a single byte of storage, saving space and improving performance by reducing logical I/Os, ie page density increases thereby reducing page reads.  I am not referring to tblPermissions as the bits are contiguous there.
 
Another problem is that every time a recordset is to be opened, a  check is performed on whether Access or SQL server is to be called.  The entire data sets for the web sites for each provider should have been isolated in function calls in individual include files. This would allow the code base to play to each database's strength.
 
Client side pagination using ADO is one of the worst possible performers (see http://www.aspfaq.com/show.asp?id=2120).  In the current implementation, all the records are thrown over the wall from SQL Server to the ADO layer, where the paging is done.  On large forums, most of the pages will never, ever be visited by an end user.  It is a huge waste of CPU, bandwidth, and memory to fetch more records than will actually be viewed by the user.
 
There is more, but it is my bedtime.  All of the deficiencies are relatively easy to address, and it makes a huge difference in throughput when they are corrected. Wink
 
 
Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post Posted: 21 March 2005 at 4:45am
Please see the development blog for version 8:-

http://forums.webwiz.net/forum_posts.asp?TID=13860&PN=1

You will see that most of the things you mention are already been worked on have been implemented for version 8.

For example the pages default.asp, forum_posts.asp, forum_topics.asp, have all been re-written to use arrays for the recordset paging and have had database calls reduced to 3 to 4 maximum per page.

The rest of the files are being worked through at the moment to also improve performance abd reduce database calls.
Back to Top
 Post Reply Post Reply

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.