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
 SQL Server Slow Search Times Fix
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

Pikachoad
Starting Member

12 Posts

Posted - 25 May 2004 :  09:17:29  Show Profile
Not to be facetious, but I found a way to make the search function work properly in Snitz with SQL Server and not time out- brute force.

My forums arent huge, but big enough that if someone were to search for a single word in all forums, all post dates, it would process for 30 seconds or whatever and then time out.

Well I recently built a new dedicated SQL server. Previously my site was hosted locally but the data was elsewhere (I know thats awful, but it timed out before even with the forums and db hosted in the same location). Now the SQL machine is in the same location as the site itself (on the same internal network).

The specs:

2.4G P4
1 GB DDR
1 60GB IDE drive for the system drive
2 SATA 80GB drives in RAID 1 for the data and log files of SQL Server.

Now, with that new machine working just on SQL Server, I can do a super simple search, like on the word "the", and it takes at most six seconds and returns with no problem. Server CPU activity spikes up to about 54% during that time- which is quite high, but on everything else my site does, it never goes above 2%.

I know this isnt a practical solution for most people- just wanted to pass on the word that brute force does work.

DavidRhodes
Senior Member

United Kingdom
1222 Posts

Posted - 25 May 2004 :  09:24:59  Show Profile
There's a search page mod written specifically for SQL Server. Try a search!

The UK MkIVs Forum
Go to Top of Page

HuwR
Forum Admin

United Kingdom
20595 Posts

Posted - 25 May 2004 :  09:25:07  Show Profile  Visit HuwR's Homepage
dedicating an entire SQL server to one forum is hardly a solution. There is a SQL optimised search page available for download which also solves the timeout without the need for a dedicated sql server.
Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 25 May 2004 :  11:36:00  Show Profile  Send ruirib a Yahoo! Message
Here it is: http://forum.snitz.com/forum/topic.asp?TOPIC_ID=42411


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

Pikachoad
Starting Member

12 Posts

Posted - 26 May 2004 :  13:50:36  Show Profile
Yes, thanks, I already knew about that page. Even with that page my forum had problems. Its funny, in my own forum I tell people to do searches when they ask silly questions, and I come here having used Snitz for several years now just to shed a bit of light on something, and I get told to do a search as well.

I even said I knew this wasnt a practical solution. Maybe I needed more smilie faces for you to not think I was recommending that people actually all go out and get a dedicated box?

And not that it matters, but the dedicated SQL machine isnt just for the forums. Its for my whole site, and at least two other sites.

I have been knee deep in discussions on optimizing the search functions before regarding this forum, and just SQL Server in general. I know that in the past, it was stated with a large degree of officiality that the timeout issue was a "bug" in SQL Server/IIS implementation. So frankly, I was expecting the bug to still exist in some degree after the upgrade. When it went from a 40 second timeout to a full webpage in front of my eyes in six seconds, I was pleasantly suprised.

EDIT:

I forgot that now I am just using the SH core pages, and I wasnt using this no-paging fix. So I went back and replaced my search.asp with the fixed one again (same one you linked me to). Without the paging the pages now take almost twice as long to load, if not more. The word "the" took 2.85 second before (using the timer built into Snitz) and with the new improved search page, it took 4.85 seconds but took longer for the huge list to appear in my browser.

Now I dont know what search mods are done in the SH mod, but I guess for me and my impractical setup, it works just fine.

Sorry to have bothered everyone. Feel free to delete this thread.

Edited by - Pikachoad on 26 May 2004 14:11:01
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.23 seconds. Powered By: Snitz Forums 2000 Version 3.4.07