Welcome, Guest. Please Login or Register.
April 27, 2025, 08:43:31 AM
Home Help Search Log in Register
News: If you are still using YaBB SE, please consider upgrading to SMF as soon as possible.

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


ICQ - 8801024Compuart@hotmail.com WWW
Re:[Done 1.4.x & 1.3.x] Speedup your Boardindex NEW Version 2!
« Reply #90 on: November 07, 2002, 06:19:12 PM »
Reply with quote

Quote from: groundup on November 07, 2002, 05:26:24 PMwhen cleaning the log (error & active) it would be faster to use truncate than to delete every row.
I think it's better to just ommit the WHERE-part so that MySQL will automatically convert it to truncate if it considers that necesary. I'll add it in the next version.

QuoteAlso, you should do a check when you change something in admin.php to see if the value is null (for instance, if censored list or the reserved list is =='') than it would truncate the table instead of exploding and all that other stuff.
Sorry, I don't understand what you mean...

Quote from: groundup on November 07, 2002, 05:37:42 PMcould we use ceiling(`dateRegistered`) to get the latest member? That might be a good idea to do when you load the boards stats in load?
I'm affraid that's not possible. Ceiling only converts a number into an integer but is in MySQL not a group by function :(.

So CEILING(5.2) results in 6
Logged

groundup
Disciple of Joe, Head Cleric
Mod Team
YaBB God
*****
Posts: 2983


Error 309: Please notify the administrator of this

WWW
Re:[Done 1.4.x & 1.3.x] Speedup your Boardindex NEW Version 2!
« Reply #91 on: November 07, 2002, 09:40:22 PM »
Reply with quote

woops, I meant greatest (aka max) :-\
Logged

http://www.fastfinancialfreedom.org - financial freedom is a myth
http://www.fastfinancialfreedom.org - financial freedom is a myth
http://www.fastfinancialfreedom.org - financial freedom is a myth
fastfinancialfreedom.org
Gobalopper
Mod Team
YaBB God
*****
Posts: 993


Cookie Monster

WWW
Re:[Done 1.4.x & 1.3.x] Speedup your Boardindex NEW Version 2!
« Reply #92 on: November 08, 2002, 02:24:37 AM »
Reply with quote

I read in another thread that there is a 1.4.2 coming out. Any plans to include these changes with it as they really help load times.
Logged
Spaceman-Spiff
Mod Team
YaBB God
*****
Posts: 3689


My $txt[228]

Re:[Done 1.4.x & 1.3.x] Speedup your Boardindex NEW Version 2!
« Reply #93 on: November 08, 2002, 02:28:51 AM »
Reply with quote

i never read any threads like that
afaik the next version is YSE2
and i bet the boardindex there will kick ass :)
Logged

   My mods, ysePak, codes, tutorials
    Support question IMs = bad.
Gobalopper
Mod Team
YaBB God
*****
Posts: 993


Cookie Monster

WWW
Re:[Done 1.4.x & 1.3.x] Speedup your Boardindex NEW Version 2!
« Reply #94 on: November 08, 2002, 06:49:28 AM »
Reply with quote

Quote from: Omar Bazavilvazo on November 06, 2002, 11:36:42 PMThanks dude :)

I'm working to add this cookie fix into 1.4.2 also,, among other bug fixes.

Implemented atm, we just need to do some testing of 1.4.2 before releasing

I just added a nice function to split the url into domain & directory. :P

ja ne!
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 NEW Version 2!
« Reply #95 on: November 08, 2002, 07:07:10 AM »
Reply with quote

Quote from: groundup on November 07, 2002, 09:40:22 PMwoops, I meant greatest (aka max) :-\
ah, ok, max. Yeah, that would be faster than the current boardindex. But storing this information as redundant information is still fastest. I'll check-out the speed differences.

Quote from: Gobalopper on November 08, 2002, 06:49:28 AM
Quote from: Omar Bazavilvazo on November 06, 2002, 11:36:42 PMImplemented atm, we just need to do some testing of 1.4.2 before releasing
::) :o

he must have meant 1.4.1 or something like that  ;D :P
Logged

Omar Bazavilvazo
YaBB SE Developer
YaBB God
*****
Posts: 2153


I never said I would stay to the end...

WWW
Re:[Done 1.4.x & 1.3.x] Speedup your Boardindex NEW Version 2!
« Reply #96 on: November 08, 2002, 04:26:30 PM »
Reply with quote

* Omar Bazavilvazo grins demonically

now are some talks about a possible release with security fixes and some bugfixes, but well, i'll keep u ppl informed :)
Logged

Greetings from México!
http://omarbazavilvazo.com
Mi foro Español-Japonés
http://hablajapones.org
http://hablajapones.org/index.php/japones/tutoriales/b16.php

NO me manden IM para soporte o dudas
...Leo los foros como todos...
groundup
Disciple of Joe, Head Cleric
Mod Team
YaBB God
*****
Posts: 2983


Error 309: Please notify the administrator of this

WWW
Re:[Done 1.4.x & 1.3.x] Speedup your Boardindex NEW Version 2!
« Reply #97 on: November 09, 2002, 04:12:44 AM »
Reply with quote

You should test the speed of ALL the queries using mysql's benchmark tool.
Logged

http://www.fastfinancialfreedom.org - financial freedom is a myth
http://www.fastfinancialfreedom.org - financial freedom is a myth
http://www.fastfinancialfreedom.org - financial freedom is a myth
fastfinancialfreedom.org
Compuart
Quality, Quality, Quality!
YaBB God
*****
Posts: 1283


ICQ - 8801024Compuart@hotmail.com WWW
Re:[Done 1.4.x & 1.3.x] Speedup your Boardindex NEW Version 2!
« Reply #98 on: November 09, 2002, 04:01:10 PM »
Reply with quote

Version 2.2 adds some new improvements (as suggested above). To upgrade either uninstall 2.1 and reinstall 2.2 or:

delete (Load.php):   /* load the settings from the table 'settings' and put them into
      an array called modSettings */
   $modSettings = array();
   $request = mysql_query("SELECT variable,value FROM {$db_prefix}settings WHERE (variable!='agreement')");
   while ($row = mysql_fetch_row($request))
         $modSettings["$row[0]"] = $row[1];


replace (index.php):$usrlng_result = mysql_query("SELECT value FROM {$db_prefix}settings WHERE variable='userLanguage'");
$temp = mysql_fetch_array($usrlng_result);
$chkusrlng = $temp[0];

by:$modSettings = array();
$request = mysql_query("SELECT variable,value FROM {$db_prefix}settings WHERE (variable!='agreement')");
while ($row = mysql_fetch_array($request))
      $modSettings[$row['variable']] = $row['value'];
$chkusrlng = $modSettings['userLanguage'];

and do steps 46-48 of the mod:
<Edit file>
Sources/Admin.php
</Edit file>

<Search for>
   $request = mysql_query("DELETE FROM {$db_prefix}banned WHERE 1");
</Search for>

<Replace>
   $request = mysql_query("DELETE FROM {$db_prefix}banned");
</Replace>

<Search for>
   $request = mysql_query("DELETE FROM {$db_prefix}censor WHERE 1");
</Search for>

<Replace>
   $request = mysql_query("DELETE FROM {$db_prefix}censor");
</Replace>

<Search for>
   $request = mysql_query("DELETE FROM {$db_prefix}log_online WHERE 1");
</Search for>

<Replace>
   $request = mysql_query("DELETE FROM {$db_prefix}log_online");
</Replace>
Logged

groundup
Disciple of Joe, Head Cleric
Mod Team
YaBB God
*****
Posts: 2983


Error 309: Please notify the administrator of this

WWW
Re:[Done 1.4.x & 1.3.x] Speedup your Boardindex NEW Version 2!
« Reply #99 on: November 09, 2002, 05:42:25 PM »
Reply with quote

not sure if you want to consider this a speedup mod anymore, it is more like the upgrade for 1.4.1 ;)
Logged

http://www.fastfinancialfreedom.org - financial freedom is a myth
http://www.fastfinancialfreedom.org - financial freedom is a myth
http://www.fastfinancialfreedom.org - financial freedom is a myth
fastfinancialfreedom.org
groundup
Disciple of Joe, Head Cleric
Mod Team
YaBB God
*****
Posts: 2983


Error 309: Please notify the administrator of this

WWW
Re:[Done 1.4.x & 1.3.x] Speedup your Boardindex NEW Version 2!
« Reply #100 on: November 10, 2002, 05:44:23 AM »
Reply with quote

I haven't checked if it is needed or not but it seems like there is a lot of:
   $usrlng_result = mysql_query('SELECT value FROM '.$db_prefix.'settings WHERE variable=\'userLanguage\'');
   $temp = mysql_fetch_array($usrlng_result);
   $chkusrlng = $temp[0];
   $lngfile_result = mysql_query('SELECT lngfile FROM '.$db_prefix.'members WHERE memberName=\''.$username.'\'');
   $temp = mysql_fetch_array($lngfile_result);
   $chklngfile = $temp[0];
in many different files :-\... index.php, loginout.php, I believe in profile.php and maybe another 1 or 2.

Since it is loaded in index.php, would you need it in all of these other files?
Logged

http://www.fastfinancialfreedom.org - financial freedom is a myth
http://www.fastfinancialfreedom.org - financial freedom is a myth
http://www.fastfinancialfreedom.org - financial freedom is a myth
fastfinancialfreedom.org
groundup
Disciple of Joe, Head Cleric
Mod Team
YaBB God
*****
Posts: 2983


Error 309: Please notify the administrator of this

WWW
Re:[Done 1.4.x & 1.3.x] Speedup your Boardindex NEW Version 2!
« Reply #101 on: November 10, 2002, 09:09:26 PM »
Reply with quote

I am having trouble counting this. How many queries would it reduce with the default sql for yse? and how many with more boards, messages, etc.
Logged

http://www.fastfinancialfreedom.org - financial freedom is a myth
http://www.fastfinancialfreedom.org - financial freedom is a myth
http://www.fastfinancialfreedom.org - financial freedom is a myth
fastfinancialfreedom.org
Compuart
Quality, Quality, Quality!
YaBB God
*****
Posts: 1283


ICQ - 8801024Compuart@hotmail.com WWW
Re:[Done 1.4.x & 1.3.x] Speedup your Boardindex NEW Version 2!
« Reply #102 on: November 11, 2002, 11:18:40 AM »
Reply with quote

Quote from: groundup on November 10, 2002, 09:09:26 PMI am having trouble counting this. How many queries would it reduce with the default sql for yse? and how many with more boards, messages, etc.

to be precise, this is the number of queries reduced for the several pages  ;D:
  • all pages: 4
  • boardindex: 3*(number of boards) + 3
  • boardindex + recent-topics activated: 4
  • boardindex + SP1-style statistics activated: 1
  • show 10 recent topics: 28 + (number of unique message authors and topic starters)
  • messageindex: 2*(number of topics shown) + (number of unique message authors and topic starters) - 1
  • display: 2*(number of messages shown) - 1
  • IM (in- and outbox): 2*(number of topics shown) + (number of unique message authors)

furthermore there's a lot of queries optimised
Logged

groundup
Disciple of Joe, Head Cleric
Mod Team
YaBB God
*****
Posts: 2983


Error 309: Please notify the administrator of this

WWW
Re:[Done 1.4.x & 1.3.x] Speedup your Boardindex NEW Version 2!
« Reply #103 on: November 11, 2002, 09:28:53 PM »
Reply with quote

* groundup estimates that the default boardindex is around 14-17 now
Logged

http://www.fastfinancialfreedom.org - financial freedom is a myth
http://www.fastfinancialfreedom.org - financial freedom is a myth
http://www.fastfinancialfreedom.org - financial freedom is a myth
fastfinancialfreedom.org
groundup
Disciple of Joe, Head Cleric
Mod Team
YaBB God
*****
Posts: 2983


Error 309: Please notify the administrator of this

WWW
Re:[Done 1.4.x & 1.3.x] Speedup your Boardindex NEW Version 2!
« Reply #104 on: November 12, 2002, 01:00:37 AM »
Reply with quote

I think some of these complex joins are actually hindering performance. Maybe not in speed but resources certainly. My server shows a lot more load once I did these changes.
Logged

http://www.fastfinancialfreedom.org - financial freedom is a myth
http://www.fastfinancialfreedom.org - financial freedom is a myth
http://www.fastfinancialfreedom.org - financial freedom is a myth
fastfinancialfreedom.org
Pages: 1 ... 5 6 [7] 8 9 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.038 seconds with 16 queries.