![]() |
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 |
All times are GMT. The time now is 12:34 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:
|