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

 All Forums
 Snitz Forums 2000 MOD-Group
 MOD Add-On Forum (W/Code)
 New, faster search.asp for SQL Server and MySQL
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 21 June 2008 :  20:02:03  Show Profile  Send ruirib a Yahoo! Message
A few years ago I modified the search.asp page to perform faster for SQL Server DBs. It worked better than the default search page, even if it still was slow for big Dbs.

Well, I found a way to improve performance a bit more, so I've updated the file for download. I also found that the page also works with MySQL DBs, for MySQL versions that support UNION queries (SQL 4.1 or later).

This file seems pretty fast, must say it even surprised myself and it does not use full text searching. It is based on a Snitz 3.4.05 search.asp page, but can be used with all 3.4 versions, AFAIK.

In order to get more performance, the replies per topic value must be accurate, for each topic. If it's not, which should unusual, some topics may be missing from the result set.

This new version adds paging both for SQL Server and MySQL, to avoid response.buffer full errors, when the result set is large.
My tests seem to indicate that the improvement in performance, specially for MySQL, is remarkable.

The new file can be downloaded here. Be sure to backup your existing page, to have it at hand if needed.

For support, please post in the Mod Implemantation Forum.

<


Snitz 3.4 Readme | Like the support? Support Snitz too

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 22 June 2008 :  07:16:37  Show Profile  Send ruirib a Yahoo! Message
Page was changed to include paging, to avoid buffer full errors.<


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

HuwR
Forum Admin

United Kingdom
20584 Posts

Posted - 22 June 2008 :  08:34:01  Show Profile  Visit HuwR's Homepage
nice, just tested here. searched for the word 'help' standard search took 11.67 secs, new search took 4.71<
Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 22 June 2008 :  09:11:39  Show Profile  Send ruirib a Yahoo! Message
Cool .
To tell you the truth, I'm even more impressed with the MySQL improvement. Looks faster than SQL Server, even if I haven't tested it with the same data, of course.<


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

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 30 July 2008 :  09:06:28  Show Profile  Send ruirib a Yahoo! Message
File updated to remove an initial space on the words to search for form field.<


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

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 11 August 2008 :  16:56:36  Show Profile  Send ruirib a Yahoo! Message
File updated to correct a bug that might have resulted in not all topics for a given search being retrieved.

Depending on the search, on SQL Server, this one can be 50% to 66% faster than the normal page.
Also, this will be more precise than the default page, when searching for replies by a given author.

This file is good just for MySQL and SQL Server.<


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.12 seconds. Powered By: Snitz Forums 2000 Version 3.4.07