![]() |
Try to increase memory_limit value in php.ini.
|
Shouldn't 8 megs be enough?
|
Quote:
|
Amazing hack! My page loaded very slow at peak times but now that problem is gone.
Thanks, Paul |
:)
i enjoy to hear that :) |
So in this hack, data is being stored in the DB...by how much is my DB size going to increase?
|
it's just stored in the DB temporairly, so not real increase of space is there...
Also it depends if you have zlib or not.. |
How can I check if I have Zlib? Phpinfo?
edit: Just checked phpinfo and I have this: --with-zlib' So what does zlib do? |
with the zlib you should be able to use the compressing function gzdeflate and so on, which has a strong effect on the temp. db size which is needed by my hack :)
|
And what is this about hacks not working with this one? I have a few hacks on forumhome, and one of them is # of users browsing in each forum :(
|
I just saw this hack... Nice work, Stefan as always. :)
|
I heard about this one, good job too! :D
|
thx both of you :)
@N9ne: well you have to decide what is more important to you, some (not needed in my opinion) hacks or performance. If you have a lot of users online same time, you should decide for performance, but, if you have just a few users, you can use your hacks. Also most of the hacks can be combined with this hack if you have good experience in hacking, but some cannot like the # online... |
Well the hacks are very important to me/my members...
At peak times I have about 40-50 users online so I should be alright...I was just looking forward to seeing the query count drop 5 :D but unfortunately I cannot sacrifice hacks... |
well, your decicion :)
you can at least install the other querie opts like pm-query and thread ammount thing.. |
I already did Xenon ;). PM Query mod I did about 4 months ago, and the thread/post counter I PMed you about and you helped me out on that too...
I have another board though, and it only has one, yes ONE! hack on forumhome, the change style drop down menu, so what do I need to do to get this to work with your mega-query reducer? |
well, the styledropdown hack should work with my hack without any problems as far as i know the hack :)
|
Hi Xenon,
I got a very rare error, it suddenly appears and it suddenly disappears (after pressing F5 in IE6): Buffer Error In line 487 is your piece of code: Code:
if($cacheupdate) { Do you have any advice ? thanks, Schorsch |
HI Xenon......
when i installed this but i have a problem i cant logout.....and just only userid=1 cant....why?? so i replace original index.php file and it work..... so Xenon what cause that?? |
@Schorsch: well, it's a problem with your server, maybe the buffer is to small or something like that.
it's nothing i could repair ... @Squawell: hmm, couldn't be normally the login/out feature are not touched by my hack. Also it works perfect for all. maybe you've changed the index on a piece of code where you shouldn't.. collidation with another hack you've installed propably? |
Quote:
by the way i dont change anything in index.php i use the original index.php...... |
maybe your cookie is corrupted.
i know it can't happen because the part of code is not affected by my hack, at least not if you've done everything correct. the last thing is normal, whenever you add or edit a forum on forumhome or add a moderator or something like that, it will just change after the cache has been updated, so whenever one new post has been made. |
I had a problem with this hack, when we were editing some templates for forumhome, they weren't updating on forumhome, so you can't see the changes, and when someone could see the changes, someone else couldn't...all in all I couldn't risk any problems and I just uninstalled the caching part of the hack..
|
@N9ne: It's not a problem.
all you have to do after editing a template on forumhome is to make a new post and then all caches would be updatet... you could also edit templates.php to manually delete all cached versions whenever you make a templateedit. As said, it's not a problem, it's just how caching works without to rewrite hundreds of files ;) |
i just read your instructions to see if this hack would work for my forum.
but this query is much slower then the original ones: PHP Code:
but the rest of this cache looks good :) |
Is there any way to make the one query faster?
|
I've updated my last post due to an cut'n'paste error...
Quote:
it's a good idea trying to decrease the number of queries, but it won't help anything if you replace some small and fast queries with one big and slow query. |
Quote:
https://vborg.vbsupport.ru/showthrea...threadid=38471 Also read this post made by Chen https://vborg.vbsupport.ru/showthrea...638#post254638 Also read Matt's post <- This guy is a db Master BTW. :D https://vborg.vbsupport.ru/showthrea...690#post254690 |
Quote:
MySQL optimizes count(*) queries because it keeps an extra counter in its index-files when using MyISAM Tables. The Index should be read from RAM on heavy-used tables. This kind of queries as well as MAX(indexed-column) can be answered without I/O which makes it really fast. this sum(...,1,0) trick has to read every row from the table or just every entry in its index if its condition matches from index. so this is always slower than reading three single values with three single queries. |
Quote:
Quote:
So, i think your assumption is not correct. It is faster for users with few pm's. |
Quote:
I do like those well scaling solutions more than those with unneccesary performance breaks. I just wanted to say that it's not always good to run less queries than others do. Maybe someone could figure out how many PMs are needed to make this one query slower than the original three. My Database stores 1.3 million PMs and as I said before, the three queries are faster by factor 6 - 8 |
Quote:
I would like to know this as well.:) |
you are right here, it would be intresing to find out how much pm's are needed to slow down...
in all my tests the one query was faster, but i never had 1,3 million pm's which i think most of the admins won't have.... If you have such a great db and board the optimization is to diasble pm-queries at all... |
Quote:
|
Vieln Dank Xenon!! ;)
Great Hack, now I only have 17 queries on my main page, nice!! |
my queries where 63, they are now 19
|
:)
it's a good feeling and also a good motivation to get so much feedback, mainly positiv :) i'm currently planing v2 of this hack, which will strongly optimize it, i hope it will be finished in two weeks |
33 to 23 querries.
thank you very much. |
Xenon, seems that this hack doesnt work with version 2.3.0 :(
I installed it and then the forums homepage doesnt load, please have a look at it, the hack is great and I want to use it on my 2.3.0 board ;) PS: Cheers again for helpng me Saturday! :D |
You're welcome seby :)
Hmm unfortunately, i don't have much free time, so i think i can't work on a new version of the hack. Haven't taken a look at 230 yet..... But i'll try to do what i can :) |
All times are GMT. The time now is 04:06 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:
|