![]() |
Remove 1 Query Per Page
[CENTER]Remove 1 Database Query Per Page
Reduce your forums query usage ! Summary: (Quoted From Original Hack for vb3) Removes 1 Query Per Page. Instructions: 1. Open includes/class_core.php 2. Go to about line 2538 and look for PHP Code:
PHP Code:
PHP Code:
PHP Code:
|
Awesome! Thanks!
|
Quote:
|
think the vB team will add this to the next version??
|
[high]* Zia kliks install
[/high] Trigunflame :) what is next tremendious idea to make page laod faster & fatser ? :D |
INstalled! Thanks! but I am running ministats and I am not seeing a decrease on queries listed in there during page loads.
|
Because if you would look at the query:
$this->registry->db->shutdown_query() It is a shutdown query that is run as the script is ending, and is not shown in any query counters. Nevertheless it is still sending that query to your forums mysql database which affects the system. I didnt say this would necessarily make your forum "Faster", I just said it would reduce a query, lol. Go read my thread in vb3 if you dont believe me... |
/me cliks install
Thank you, very usefull! |
/me cliks install
Thank you, very usefull! |
Quote:
|
Quote:
Anyhow, thanks for this |
Thank you very much. I always wanted to reduce the query usage on my forums but guess what, this helps a lot! :)
|
Trigunflame the code to replace at the very bottom of the last replacement says you have to overwrite. That section in the original has this:
Code:
$this->registry->db->shutdown_query(" According to the manual i have to overwrite the first two } is that correct? |
Quote:
|
Tnx :) Every reduce of query is usefull
|
Quote:
Wait, I think I understand now that I look at what I typed, your saying to paste what's below above this "$this->set('location', WOLPATH); " right? Maybe change it to say: "3. Above that, paste the following:". ;) Otherwise more people might get confused if they're looking at this right after getting up in the morning like me hehe. |
Quote:
|
*bump*
|
I'm still not sure what changes when I remove the query. And if it doesn't change speed I rather keep the extra query
|
Quote:
|
Gotta love bumps.. but no this really is important...
|
Is there anything fundamentally changed by this?
The only reason I haven't installed it personally, is because Jelsoft generally do a good job at optimising their code and queries. If they could have originally saved on this query without losing some kind of functionality, I'd be wondering why they didn't. |
Quote:
It deals with how sessions are updated; before in vb3 it was handled in a single function; now it uses 2 seperate functions for updating the user last active and the session. So yes, it wont hurt anything to use this small addition.. but it does need to be expanded to deal with the session table as well; which would/could save 2 queries as opposed to the 1. |
Quote:
Waiting on update :) |
hmm... bump
|
I'm very interested in this.. I'll wait for update. :)
|
Yes.. will be done sometime, lol lots of things on my todo list.
|
Look forward to it!
I'm currently running 3.5.4, will this mess up anything regarding sessions or can I still run this one until the other one is out? |
Caching Template...also reduce 1 query.....this also reduce 1 ..
hope to get an update about this(Remove 1 Query Per Page) hack |
Quote:
accelerator :P accelerates and compress less loading isnt the world perfect now? lol sure is for me thanks! Trigunflame (i cant never spell his name right) |
World will be perfect if someone can confirm this doesn't mess anything up in 3.5.4 so i can use it until he updates it further. The "sessions" thing he mentioned made me nervous so wanted confirmation. ;)
|
what session thing?
|
Umm?
Post #23 in this thread... |
Does anyone have an answer to this question?
|
It shouldnt mess up anything.
|
Thank you so much!
|
Does it work with 3.6?
|
wow thanks. Very useful
|
Does this work in 3.6.4?
|
All times are GMT. The time now is 05:23 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:
|