![]() |
improved dot icons - decreases DB load
This Hack will decrease the Load on your DB-Server.
It adds one small Query to forumdisplay.php and modifies one big, slow query. If you have lots of posts and $showdots enabled, this is a must. If you disabled $showdots via Admin-CP because of performance issues, you can savely enable it now :) Note: this will NOT work with PHP 3.x or lower UPDATE: I've added instructions to modifiy member2.php, usercp.php and search.php |
Quote:
|
means it will just work with PHP 4 or higher.
|
hey, looks very good pwr_sneak.
Joining thread and post table is really a bad thing, so cut them out this way looks good. Have you some testresults to see the time the two queries take instead of just the one before (just intrested in..) |
Quote:
the two new queries takes 13 millisecondes :p |
Are you sure it's faster?
I tested this locally and it doesn't seem to be any faster. :confused: |
if you test it with small post and thread tables it wouldn't make a huge difference, but the original code doesn't scale very well.
my forum got 1.4 million posts and 47k threads and it definitely is MUCH faster |
OK, i'll upload the new forumdisplay to live forums and let you know how it goes then.
Back in a mo. |
I see some improvement finally, it went from 0.095 to 0.090. :)
|
Nice:)
Satan |
Cool hack buddy :)
- miSt |
Is there any way this can be implemented for search.php (view new posts) as well? Most of our members use that, which, to say the least, generates a lot of unwanted load.
Thanks :) |
Installed - here's hoping it works ;)
|
Quote:
so compare to run 100 times the big old one with 100 times the small two new and you'll see the effects really :) |
Quote:
|
I noticed some differences in member2.php and usercp.php. You used dojoin instead of dotjoin. I guess it has to be dotjoin like the others, so I changed it in my setup. Can you confirm this as a typo in the textfile/instructions or does it have to be dojoin
- djr |
you're right, this is a typo.
It won't change anything but $dotjoin is right ;) I found this typo in the original member2.php too (2.2.9). My Instructions have been updated once again. |
pwr_sneak: You rule sir. Thank you :)
|
good find, however my forums are still slow with dot folders :(
this has decreased the load time though... |
Interesting... :) Another example of how 2 queries sometimes can be better than 1. :)
|
Very nice pwr_sneak! When I tested it my forumdisplay page was loading in 1.2 - 3 seconds. Afterwards it's loading in 0.3 - 0.6. :D
|
Quote:
Now go explain that to Allen Ayres. :D |
have installed it on my board, too
i have a small board, but even there the generation time reduced by a half.. |
Inteseresting! I think I will save myself the trouble and do it now.
Thank you very much for this performance hack. |
nice hack!
thanx pwr_sneak ! |
Thanks a bunch, works great!
-Jason |
There should be a section in the db for performance enhancing/optimization hacks =).
Nice hack ;) |
Quote:
i don't think 2 or 3 hacks make such a section really needed ;) |
Yeah, I thought about that after I said it.. plus there can't be that many optimizations =P
|
oh there can ^^
wait until you see vb3 ^^ |
Well, but that's all different code =P. I meant there can't be THAT many optimizations to vB2 without re-coding the entire thing ;)
|
ok, that's right.
you have to recode some things to optimize it :) |
Instructions say:
Quote:
Quote:
|
you could try to read the code and understand how it works :P
which vbulletin version do you use? if its not the latest stable (2.3.0), try to update it. |
how many ppl installed this?
edit: check the forumdisplay :) |
All times are GMT. The time now is 02:45 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:
|