Welcome, Guest. Please Login or Register.
April 27, 2025, 08:45:37 AM
Home Help Search Log in Register
News: SMF is the next generation in forum software, almost completely re-written from the ground up, make sure you don't fall for cheap imitations that suffer from feature bloat!

YaBB SE Community  |  Development  |  Completed mods  |  [Done 1.4.x & 1.3.x] Speedup your Boardindex NEW Version 2! « previous next »
Pages: 1 ... 3 4 [5] 6 7 ... 10 Reply Ignore Print
Author Topic: [Done 1.4.x & 1.3.x] Speedup your Boardindex NEW Version 2!  (Read 25695 times)
Compuart
Quality, Quality, Quality!
YaBB God
*****
Posts: 1283


ICQ - 8801024Compuart@hotmail.com WWW
Re:[Done 1.4.1] Speedup your Boardindex by 50% [BETA 1.4.0 & 1.3.x]
« Reply #60 on: August 30, 2002, 08:30:29 PM »
Reply with quote

The bugfix only applies to 1.4.0 and 1.4.1.

1.3.x doesn't need a fix
Logged

Egg
Full Member
***
Posts: 139


I'm a llama!

WWW
Re:[Done 1.4.1] Speedup your Boardindex by 50% [BETA 1.4.0 & 1.3.x]
« Reply #61 on: August 31, 2002, 07:59:32 AM »
Reply with quote

I get this when I try to rerun SpeedUpBoardIndex.php

YaBB SE DB Editor
Error updating the DB. SQL Error: Duplicate column name 'ID_LAST_TOPIC'
Board 1 updated!
Board 2 updated!
Board 3 updated!
Board 5 updated!
Board 6 updated!
Board 7 updated!
Board 8 updated!
Board 9 updated!
Board 10 updated!
Board 11 updated!
Board 13 updated!
Board 14 updated!
Board 15 updated!
Board 16 updated!
Board 17 updated!
Board 18 updated!
Board 19 updated!
Board 20 updated!
Board 21 updated!
 
and also I cant "repair all boards"" in admin section. it times out.

any advice??

www.200mph.org.uk

it definetly speeds up the board though! thanks

Egg
Logged
Compuart
Quality, Quality, Quality!
YaBB God
*****
Posts: 1283


ICQ - 8801024Compuart@hotmail.com WWW
Re:[Done 1.4.1] Speedup your Boardindex by 50% [BETA 1.4.0 & 1.3.x]
« Reply #62 on: August 31, 2002, 08:15:26 AM »
Reply with quote

Quote from: Egg on August 31, 2002, 07:59:32 AMI get this when I try to rerun SpeedUpBoardIndex.php

YaBB SE DB Editor
Error updating the DB. SQL Error: Duplicate column name 'ID_LAST_TOPIC'
Board 1 updated!
Board 2 updated!
Board 3 updated!
Board 5 updated!
Board 6 updated!
Board 7 updated!
Board 8 updated!
Board 9 updated!
Board 10 updated!
Board 11 updated!
Board 13 updated!
Board 14 updated!
Board 15 updated!
Board 16 updated!
Board 17 updated!
Board 18 updated!
Board 19 updated!
Board 20 updated!
Board 21 updated!
You can safely ignore this error.

Quoteand also I cant "repair all boards"" in admin section. it times out.
The mod doesn't touch the repairboards-module (eventhough strictly taken it should...). The time out is probably caused by the complexity of this module. I currently don't have a fix for this, but who knows I might one day write a mod called 'speedup repairboards' ;)

Quoteit definetly speeds up the board though! thanks
great! :D
Logged

Spaceman-Spiff
Mod Team
YaBB God
*****
Posts: 3689


My $txt[228]

Re:[Done 1.4.1] Speedup your Boardindex by 50% [BETA 1.4.0 & 1.3.x]
« Reply #63 on: August 31, 2002, 05:32:25 PM »
Reply with quote

a bit off topic:
do u think SSI.php can be enhanced too by creating another table for storing the latest topics?
function recentTopics() seems to use 4 queries
data might be a bit redundant, but speed will increase a lot :)
Logged

   My mods, ysePak, codes, tutorials
    Support question IMs = bad.
Compuart
Quality, Quality, Quality!
YaBB God
*****
Posts: 1283


ICQ - 8801024Compuart@hotmail.com WWW
Re:[Done 1.4.1] Speedup your Boardindex by 50% [BETA 1.4.0 & 1.3.x]
« Reply #64 on: August 31, 2002, 05:57:19 PM »
Reply with quote

hmmm, doesn't seem too hard to make this into one query, even without altering the table structure. As a matter of fact...I already did that for YaBB SE 2. Not that that's much help to you :P But I'll release a faster SSI after I've finished some YaBB SE 2 things.
Logged

Spaceman-Spiff
Mod Team
YaBB God
*****
Posts: 3689


My $txt[228]

Re:[Done 1.4.1] Speedup your Boardindex by 50% [BETA 1.4.0 & 1.3.x]
« Reply #65 on: August 31, 2002, 06:45:00 PM »
Reply with quote

thanks :)
just wondering, wont 1 complicated query could be slower than 4 simple ones?
i mean the speed isnt always determined by the number of queries, but also the complexity of the query, isnt it?
Logged

   My mods, ysePak, codes, tutorials
    Support question IMs = bad.
Compuart
Quality, Quality, Quality!
YaBB God
*****
Posts: 1283


ICQ - 8801024Compuart@hotmail.com WWW
Re:[Done 1.4.1] Speedup your Boardindex by 50% [BETA 1.4.0 & 1.3.x]
« Reply #66 on: August 31, 2002, 07:47:39 PM »
Reply with quote

Quote from: Spaceman-Spiff on August 31, 2002, 06:45:00 PMjust wondering, wont 1 complicated query could be slower than 4 simple ones?
i mean the speed isnt always determined by the number of queries, but also the complexity of the query, isnt it?
That's possible. But as long as queries don't have to do something stupid (like: non-ID-joining conditions, redundant data in result set, more than one non-indexed-column condition in WHERE-part, etc.), it's almost always faster.
Logged

Bossy Boots
Noobie
*
Posts: 24


WWW
Re:[Done 1.4.1] Speedup your Boardindex by 50% [BETA 1.4.0 & 1.3.x]
« Reply #67 on: September 12, 2002, 06:11:11 AM »
Reply with quote

I installed this on version 1.41 installed beautifully when I remembered to run the the "speedupboardindex.php" file.
AND
It WORKS TOO.

Good job thank you.
Logged
Nodial
Noobie
*
Posts: 18


I'm a llama!

Re:[Done 1.4.1] Speedup your Boardindex by 50% [BETA 1.4.0 & 1.3.x]
« Reply #68 on: October 21, 2002, 09:48:54 PM »
Reply with quote

I've installed it in my 1.4.1 board and it's F A S T E R  :o :o :o
KEEP UP THE GOOD JOB MAN  8)
Logged
Spaceman-Spiff
Mod Team
YaBB God
*****
Posts: 3689


My $txt[228]

Re:[Done 1.4.1] Speedup your Boardindex by 50% [BETA 1.4.0 & 1.3.x]
« Reply #69 on: October 21, 2002, 11:50:39 PM »
Reply with quote

when a new topic is created, then moved without creating a redirection, the boardindex still shows that moved topic in the origin board
Logged

   My mods, ysePak, codes, tutorials
    Support question IMs = bad.
Webby
Beta Tester
YaBB God
*****
Posts: 829


Some mistakes are too funny to make only once.

ICQ - 9814812webby@salesplaza.nl WWW
Re:[Done 1.4.1] Speedup your Boardindex by 50% [BETA 1.4.0 & 1.3.x]
« Reply #70 on: October 22, 2002, 03:45:08 AM »
Reply with quote

Ehm....Compuart ?  R U willing to try my BoardIndex.php again  :-\ ?
Logged

Webby of salesplaza.nl
The YaBBSE buttongenerator : Click HERE !
Compuart
Quality, Quality, Quality!
YaBB God
*****
Posts: 1283


ICQ - 8801024Compuart@hotmail.com WWW
Re:[Done 1.4.1] Speedup your Boardindex by 50% [BETA 1.4.0 & 1.3.x]
« Reply #71 on: October 22, 2002, 05:18:26 PM »
Reply with quote

Quote from: Spaceman-Spiff on October 21, 2002, 11:50:39 PMwhen a new topic is created, then moved without creating a redirection, the boardindex still shows that moved topic in the origin board
This bug was fixed in 1.12  :)

Another bug MC600 found concerns an error when deleting a message in an empty board. This can be fixed by replacing (Subs.php):
  else
      fatal_error(mysql_error());

by:
  elseif (strlen(mysql_error()))
      fatal_error(mysql_error());
   else
      $request = mysql_query("UPDATE {$db_prefix}boards SET ID_LAST_TOPIC=0 WHERE ID_BOARD=$board");

or use the new version 1.13 instead  8) It can be downloaded from the first message of this topic. This version will also take the 1.4.0 and 1.3.x versions out of beta-status.
« Last Edit: October 22, 2002, 05:20:15 PM by Compuart » Logged

nferreri
Noobie
*
Posts: 45


Re:[Done 1.4.x & 1.3.x] Speedup your Boardindex by 50%
« Reply #72 on: October 30, 2002, 04:30:00 PM »
Reply with quote

I'm really interested in getting this mod to work because my index is VERY slow due to an extremely high traffic forum with lotsa boards...

BoardMod is fine up until Steps 9 and 10 where it can't find the appropriate search strings.  I attempted to manually update the files but experienced a problem with the index showing all boards even if people didn't have access to them.  Also, some people reported getting misc. SQL errors so I restored the old files.

Step 9:

boardmod file is searching for this in BoardIndex:
Quote$result_boards = mysql_query ("SELECT c.name as catName, c.ID_CAT, b.ID_BOARD, b.name as boardName, b.description, b.moderators, b.numPosts, b.numTopics, c.memberGroups FROM {$db_prefix}categories as c LEFT JOIN {$db_prefix}boards as b ON (b.ID_CAT=c.ID_CAT)$condition ORDER BY c.catOrder, c.ID_CAT, b.boardOrder, b.ID_BOARD");

my boardindex has closest match of this:
Quote$result_boards = mysql_query ("SELECT c.name as catName, c.ID_CAT, b.ID_BOARD, b.name as boardName, b.description, b.moderators, b.numPosts, b.numTopics FROM {$db_prefix}categories as c LEFT JOIN {$db_prefix}boards as b ON (b.ID_CAT=c.ID_CAT) WHERE ('$settings[7]'='Administrator' || '$settings[7]'='Global Moderator' || FIND_IN_SET('$settings[7]',c.memberGroups)!=0 || c.memberGroups='') ORDER BY c.catOrder, b.boardOrder");

not quite sure why those are different.. i don't ever recall editting that query string.


step 10:
boardmod wants to find this in boardindex:
Quote$result3 = mysql_query("SELECT m.posterName,m.ID_MEMBER,m.posterTime,m.subject,t.ID_TOPIC,t.numReplies, mem.realName FROM {$db_prefix}topics as t LEFT JOIN {$db_prefix}messages as m ON (m.ID_MSG=t.ID_LAST_MSG) LEFT JOIN {$db_prefix}members as mem USING (ID_MEMBER) WHERE (t.ID_BOARD=$row_board[ID_BOARD]) ORDER BY m.posterTime DESC LIMIT 1");

      if (mysql_num_rows($result3) > 0) {

         list ($latestPostName,$latestPostID,$latestPostTime,$subject,$topicID,$numReplies, $latestPostRealName) = mysql_fetch_row($result3);

         if ($username!='Guest') {

            $result4 = mysql_query("SELECT logTime FROM {$db_prefix}log_boards WHERE (ID_BOARD=$row_board[ID_BOARD] && memberName='$username' && logTime >= $latestPostTime) LIMIT 1");

            $result4b = mysql_query("SELECT logTime FROM {$db_prefix}log_mark_read WHERE (ID_BOARD=$row_board[ID_BOARD] && memberName='$username' && logTime >= $latestPostTime) LIMIT 1");

            $log1 = mysql_num_rows($result4);

            $log2 = mysql_num_rows($result4b);

         }

      }

my boardindex has something almost complete different... this is the text I replaced during my testing:
Quote$result3 = mysql_query("SELECT m.posterName,m.ID_MEMBER,m.posterTime,m.subject,t.ID_TOPIC,t.numReplies, mem.realName, lb.logTime as log1, lmr.logTime as log2 FROM {$db_prefix}messages as m, {$db_prefix}topics as t LEFT JOIN {$db_prefix}members as mem ON (mem.ID_MEMBER=m.ID_MEMBER) LEFT JOIN {$db_prefix}log_boards as lb ON ('$username'!='Guest' && lb.ID_BOARD=$row_board[ID_BOARD] && lb.memberName='$username' && lb.logTime >= m.posterTime) LEFT JOIN {$db_prefix}log_mark_read as lmr ON ('$username'!='Guest' && lmr.ID_BOARD=$row_board[ID_BOARD] && lmr.memberName='$username' && lmr.logTime >= m.posterTime) WHERE (m.ID_MSG=t.ID_LAST_MSG && t.ID_BOARD=$row_board[ID_BOARD]) ORDER BY m.posterTime DESC LIMIT 1");
         $latestPostName = $txt[470];
         $latestPostTime = $txt[470];
         $latestPostID = '-1';
         $latestModTime = $subject = $topicID = '';
         $numReplies = 0;
         if (mysql_num_rows($result3) > 0)
            list ($latestPostName,$latestPostID,$latestPostTime,$subject,$topicID,$numReplies, $latestPostRealName, $log1, $log2) = mysql_fetch_row($result3);
         $latestEditTime = $latestModTime = $latestPostTime;

as you can see, they're very different.... if anyone could offer some assistance i would greatly appreciate it.
Logged
Compuart
Quality, Quality, Quality!
YaBB God
*****
Posts: 1283


ICQ - 8801024Compuart@hotmail.com WWW
Re:[Done 1.4.x & 1.3.x] Speedup your Boardindex by 50%
« Reply #73 on: October 30, 2002, 05:54:12 PM »
Reply with quote

The lines of code you are describing seem to come from the boardindex of YaBB 1.4.0. The mod you're using though is the 1.4.1 version mod. Try SpeedUpBoardIndex1_4_0.mod instead of SpeedUpBoardIndex1_4_1.mod. Both are included in the zip. Everything should work fine then (I hope ;D)
Logged

nferreri
Noobie
*
Posts: 45


Re:[Done 1.4.x & 1.3.x] Speedup your Boardindex by 50%
« Reply #74 on: October 30, 2002, 08:03:46 PM »
Reply with quote

omg im so stupid... i could have sworn i had version 1.4.1 but apparently i only have 1.4.0 (did version check).

the 1.4.0 version worked great... makes me a little weary im running an old version of yabb though.. i guess ill look at features and see if the .1 is worth the pain of upgrading. :)

thanks for help.
Logged
Pages: 1 ... 3 4 [5] 6 7 ... 10 Reply Ignore Print 
YaBB SE Community  |  Development  |  Completed mods  |  [Done 1.4.x & 1.3.x] Speedup your Boardindex NEW Version 2! « previous - next »
 


Powered by MySQL Powered by PHP YaBB SE Community | Powered by YaBB SE
© 2001-2003, YaBB SE Dev Team. All Rights Reserved.
SMF 2.1.4 © 2023, Simple Machines
Valid XHTML 1.0! Valid CSS

Page created in 0.563 seconds with 18 queries.