![]() |
New Posts / Get Daily Optimization
Here is a small 3.0.2 optimization to search.php?do=getnew / search.php?do=getdaily that you can make a noticeable impact on your load.
edit search.php, find: PHP Code:
PHP Code:
|
Will this work on RC3 for now? Once 3.0.2 gets released, I plan on upgrading (that is if 3.0.3 isn't just around the corner). ;)
|
Quote:
|
This is nice of you to post :)
I think vBulletin should tell the users now what mods they have made to the files as most people have hacked the boards and dont want to rehack everything once an upgrade comes out. There cant be that many things to do and most people who have hacked there boards can make the file edits with the new 3.0.2 corrections. food for thought :) |
Quote:
|
Quote:
This is already added to 3.0.2, right? |
no doubt :)
|
Thanks Freddie!
|
is 3.0.2 out? Ive not seen it
|
It's not out... yet...
|
nice work, that's a major optimisation right there :)
|
Quote:
|
Nice little addition thanks
|
Nice one! :)
Thx. |
Installed - thanks!
|
Quote:
|
Quote:
|
uhh...i just upgrade to 3.0.1 and now i hear 3.0.2 :(
|
Thanks Freddie.. :)
|
My "check daily" went from about 1 second to about 0.1 seconds!!
Well done, installed. :) |
Quote:
I dont see the exclussion in this condition :( |
always the small things that make a big impact. :)
Thanks. |
Quote:
But I'd love to hear more from Freddie on this :) |
thanks
|
vb3 rc4:
"Parse error: parse error, unexpected $ in /www/htdocs/********/search.php on line 1658" this is line 1654 to 1668: PHP Code:
|
Interesting - my method to limit the load was to modify the query so that it is forced to only scan the past 100 posts posted only. According to the mysql logs, that only made the query scan 100 rows. But I will try this out for sure. :)
|
Quote:
But: Table thread has an index called forumid which is built from the colums forumid, visible, sticky and lastpost. Three of them (forumid, visible and lastpost) are already conditions of that particular query, so if a condition for column sticky is added mySQL uses this index which dramatically reduces the time to execute the query. @thakikka The code excerpt you posted seems just fine, so the error must be somewhere above. |
It definitely sped things up. Thanks, Freddie!
|
Quote:
|
This should be listed as a bug if it's bringing servers to their knees. Nice try trying to hide it and offer it as a hack. It should have been announced at .com.
|
Quote:
|
Quote:
|
well whatever ;) thanks for releasing it here freddie im sure alot of people appriciate it including me :)
|
nice one Freddie :)
that shows the little hints can boost MySQL :) |
IMO Freddie's first post was accurate and straightforward - it's an optimization for vB3 from the upcoming 3.0.2 release. Since adding it involves editing a file, and it's not a bug, this seems to be the appropriate place to release it. Of course, there are other possible ways to look at it, but the majority here seem to appreciate it as do I. Thanks again Freddie!
Any other tidbits you can throw our way? :D |
Funny - my speeds increased with this hack.
getnew went from .02 to .03 getdaily went from .05 to .07 and my get unanswered threads went from .30 to .44 -Michael |
Quote:
|
Quote:
|
Ignore the naysayers... THANK YOU for releasing this early; makes a huge difference on sites with 1 mil+ posts.
|
thanks Freddie ...
optimization hacks/tip = :D:):up: |
All times are GMT. The time now is 04:35 PM. |
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:
|