![]() |
I'm waiting for kmike's version - why reinvent the wheel? :)
kmike, did you just use the vB2 code? Coz if you did, I can try to modify it to fit too. |
Here is some excellent info that everyone should look at.
http://dev.mysql.com/doc/mysql/en/Fu...ne-tuning.html |
My database is fine-tuned already. No matter how much you fine-tune, if your database is big, a LEFT JOIN is a bad query to have.
|
wasn't meant to be about that. About changing the minimum and maximum word length and other stuff like the stop word list.
|
Ahhh... thanks. I see now. :) Interesting... do you have any particular settings that work for you?
kmike, do post your code once you have them ready. :) |
If you want to remove left joins together with revelance why not to say just
Code:
$isboolean="'"; or in one string Code:
$fulltext_sql = "SELECT postid FROM |
Just wanted to say that we installed this hack on our 950,000 post VB3 board with good results so far. Searches were slow with relevance enabled so I disabled it and searches seem snappy.
|
Quote:
|
Still want to say few words for left joins :)
Lets say that you have large board with many forums, usergroups and complex access level. After it lets suppose that somebody with common access level (just registered) will search for some common phrase (for example "+javascript +flash"). On one board, where i tested it, such search with no left joins return nothing because fulltext query find first 200 matches in forums invisible to beginner members and stop on it. Showresult page (looking on current member access level) hide all that 200 matches from search result and with great enthusiasm say that nothing found :) On same forum search with left joins return complete set of 200 matches (from other forums visible to beginner members) for same search phrase and may return more if "maxresult" will be set to larger number. But if your forum access level structure is not too complex, you may remove left join part without visible consequence :) |
Awesome, John Woo. Your new query has fixed my slow_query/ mysql locking/ apache crashing problem (as far as I can tell with testing).
I'm using the first code example, just because the original code is like that. :) Thanks! |
All times are GMT. The time now is 10:20 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|