Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Help Groups for Snitz Forums 2000 Users
 Help: Database: MS SQL Server
 MS-SQL Vs Access Responce Time Query ?
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

pierretopping
Junior Member

United Kingdom
224 Posts

Posted - 05 January 2009 :  16:35:54  Show Profile  Visit pierretopping's Homepage
Hi All,

I've now successfully migrated (on a test system) our Access Database to MS-SQL by following the steps in the excellent "Step by Step Upgrade from Access to MS SQL" at http://forum.snitz.com/forum/topic.asp?TOPIC_ID=63884

Now since if got the access and MS-SQL database's on the same server (so on the same hardware), I decided to do some comparisons with performance of Access Vs Ms-SQL.

My Database has around 20'000 posts, and is around 25mb in Access, and after its imported to MS-SQL the file size went up a bit.

Now the strange thing is that if I run a search with search.asp against the Access database and using the same search Criteria , I'm getting the response in around 1 second. I then change my config.asp file so its using the ms-sql version of the database, and run the same query and it cones back in at 4 seconds ?

4 times slower ?

I've run the Optimization stuff on the MS-SQL version of the data, but no change. I've also run the test several times in case the data was not being buffed in some way, but no change.

The test system only has 1 cpu, and the like system will have 4, so OK, I can see the MS-SQL version can (maybe) use Parallelism to its advantage later on, but MS-SQL right now id 4 times slower then the access version of the data ?

Any ideas ?

Is there a different version of search.ash to use with MS-SQL ?

Thanks for all your help on this
<

HuwR
Forum Admin

United Kingdom
20584 Posts

Posted - 05 January 2009 :  17:09:23  Show Profile  Visit HuwR's Homepage
that is a fairly typical comparison, the benefits of sqlare not that it can return results quicker, you will see the benefits when you have hundreds/thousands of concurrent users on your forum all reading posting and searching <
Go to Top of Page

AnonJr
Moderator

United States
5768 Posts

Posted - 05 January 2009 :  17:16:30  Show Profile  Visit AnonJr's Homepage
For starters, there is a SQL Server optimized version of search.asp floating around here somewhere - that should change things a little bit. In order to be more DB agnostic, the code isn't particularly optimized for any given platform. That's a good thing, and a different discussion for another day.

Also, your test is a little disingenuous... you searching for a particular term is not the same as 50 people running the search at the same time. Depending on the hardware, Access does ok up to about 15 or so people, but once you start moving beyond that you're going to see a precipitous drop in performance. But, SQL Server was born to handle multiple connections, and that is where you'll see it shine.

There are a number of other advantages too, not directly related to speed.<
Go to Top of Page

pierretopping
Junior Member

United Kingdom
224 Posts

Posted - 05 January 2009 :  17:33:02  Show Profile  Visit pierretopping's Homepage
Thanks both, you've put my mind at rest :o)

and I'll check out the following http://forum.snitz.com/forum/topic.asp?TOPIC_ID=67315&SearchTerms=search.asp,sql

Thanks again,

Pierre<

Edited by - pierretopping on 05 January 2009 17:34:30
Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 05 January 2009 :  17:53:30  Show Profile  Send ruirib a Yahoo! Message
Don't be surprised. I remember a forum with about 200,000 posts that had serious search performance issues, and that lead me to develop my optimized search page. Even after the search page, the same query in Access was noticeably faster!<


Snitz 3.4 Readme | Like the support? Support Snitz too
Go to Top of Page

pierretopping
Junior Member

United Kingdom
224 Posts

Posted - 06 January 2009 :  11:20:05  Show Profile  Visit pierretopping's Homepage
Thanks for the input :o)

Apart from the slow search using ms-sql, should I be aware of any other issues with performance running with ms-sql over access ?

We had no performance issues using the access DB, and we only migrated over to MS-SQL because we were aware that access could hit some problems with a large number of posts (20,000) and users(15 to 20 on-line normally).

Thanks again, some great input from all.

Pierre<
Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 06 January 2009 :  16:36:58  Show Profile  Send ruirib a Yahoo! Message
If you created the tables using setup.asp, no other relevant performance issues, but it also depends on the specific server running your SQL Server DBs...<


Snitz 3.4 Readme | Like the support? Support Snitz too
Go to Top of Page

Flashspot
Starting Member

United States
6 Posts

Posted - 21 October 2009 :  13:14:46  Show Profile  Visit Flashspot's Homepage
Just a quick thanx to ruirib.

With about 4,500 members, 28,000 topics and 300,000 replies, using his search code improved search performance by about 30%.

(SQL Server 2005/Win Srvr 2008/Snitz 3.4.07)
Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 21 October 2009 :  14:25:02  Show Profile  Send ruirib a Yahoo! Message
Glad it was of use .


Snitz 3.4 Readme | Like the support? Support Snitz too
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.18 seconds. Powered By: Snitz Forums 2000 Version 3.4.07