| User | Post |
|
9:12 am 20 Aug 2008
| Diego Ferrari Bruno
Guest
| | | |
|
| |
|
|
Hi again.. i'm pretty sad since i've discovered that simple:press forum was slowing down my hole site.
so. it's queries DB 430 times on every wordpress page… what could we do about it?
i was forced to turn it off on my site… can't work with that “speed”
Thanks
|
|
|
|
|
Wel I hope you are still around to answer a couple of questions. First, I would like to have seen it running because I would like to know how it got to 430. Also - I could do with ane explanation on the 'every wordpress page' comment because the forum doesn't run any queries on any page other than the one it displays in. So it would have been useful to get to the bottom of it. There isn't really a way it can 'slow down a whole site'.
|
|
|
12:58 pm 20 Aug 2008
| Julian D.
Guest
| | | |
|
| |
|
|
On my page as a logged in there are 240 Querys and as normal guest some about 180 and that is too much i think. With a few users it works i think but what if there are about 200 online?
greetings Julian
|
|
|
|
|
While it is an ongoing task with every release to optimise wherever possible and reducing the amount of queries is taken very seriously and is a continuing task and goal there are four comments I would make.
The first is that MySQL is a remarkably robust engine and is very good at cacheing. The vast majority of the queries you refer to are taking place in memory and are returnng very small chunks of data which, from a properly optimised and indexed database is not an issue or a strain. Sites generally will suffer far more slowdown from poorly constructed php code than they ever will from data retrieval. And whenever I am shown a slow site it is, without exception, always down to (a) a cheap host dividing up resources between too many websites and (b) sites that are littered with too many 'widgets' plugins and fancy bits and pieces with no thought to performance. Certaiinly one likes to keep the query count down as much as possible but it is a myth to believe that every query exponetially skows down page retrieval. Sites that load 22 style sheets with every page (and I saw one of these just last week) because of badly written plugins are bever going to load fast and are always going to be cpu hungry.
Secondly, we tend to give people what they ask for. Our users have made many, many requests for features and being the nice guys we are we tend to add those new features in. It is interesting to note that between V2.1 and V3.1.3 the query count actually went down but the codebase went up as, new features need to be coded. But a huge effort has also gone in to, and is contunuing to go in, to ensurng that less and less code is actually loaded per page. This has, regardless of what the guy above said, actually made it faster. Many users who have been with us for some time have remarked upon this which is satisfying. But… more featires and bells and whistles will inevitably makde the coe base bigger and add to database interaction.
The third and one of the most important points is that we have been despertaly trying to keep support going for users on older versions of MySQL. Again most of the cheaper hosts are still using what is, in technology and software terms, pretty old and ancient versions of MySQL. When we decide we can support these no longer and move to more recnt version only there is much that can be done to reduce queries and improve performance. Newer version support stored procedures, sub-queries and views etc., all of which can be most beneficial.
The fourth point is that ths plugin is built upon WordPress. That offers both a plus and a minus. The plus is that it means a totally integrated forum which can not be done with other, bigger systems such as Simple Machine of phpbb and this has been something that users want. The downside is that WordPress will still need to do all the things that WordPress does - including all the queries it has to run - before handing off control to the forum plugin. The guy above with his alleged 430 queries has not broken that down to how many are purely down to the forum. Neither have you.
And I guess that finally I should add the obvious comment. If you are unhappy with it then please do not use it.
|
|
|
5:39 pm 20 Aug 2008
| Julian D.
Guest
| | | |
|
| |
|
|
Oh i think you understood me a little bit wrong.
I love this Plugin!!!
And i think i knwo how much time you spend on developing for free! ( maybe most of the free time? )
I can understand you, but i think the most hosts have newer mysql. ( also the cheap ones) if not you can give them the next versions wich support the old mysql on their risk.
My Question is now do you know some sites wich have this forum running and a lot of users?
I want to know how much users can be active at the same time without slowing down the whole server.
greetings Julian and Thanks for the detailed answer.
|
|
|
|
|
I need Mr Papa for this one as he can always remember the numbers but I know of at least three users whose membership is numbered in the thousands (if I recall correctly) as are their number of posts. They have reported ni slow down whatsoever. (Perhaps Mr papa can verify later on). At the end of the day it's not how many users and how many posts you have - it's how many concurrent users.
I wish you were correct about the MySQL version. It has a similar take up to hosts using php5.
|
|
|
6:20 pm 20 Aug 2008
| Diego Ferrari Bruno
Guest
| | | |
|
| |
|
|
Hi. Again. I won't go away as easy as that. I choose to use Simple:Press Forum as i thought it's a great great great plugin. If I don't want to use it, i won't, of course! There's no need to talk about my rights and i'm sorry if was not polite on my post. I didn't mean to hurt your feelings. I Know it's hard to do all the work you have done and than someone just tell you it's not good.
BUT IT IS GOOD! i love it! So.. let's talk seriously now. I can turn it on again latter when nobody is at my site and then you can see it working.
I live in brazil so… it's 14h15 local time. (you may compare with the post time.) At 01h i may turn it on again if you wish to see it working ok?
About the queries and loading time: Simple press on: to many queries - 4,5 secs. Simple press off: about 48 queries - 0,541 secs
My host may be slow but it works fine with simple press off. I was thinking about changing my host but first i decided to turn some plugins off to see what happens and what a surprise….
Some info: my site http://www.sur10.net my host http://www.dreamhost.com
One more thing.. i'm creating a plugin for simple press forum as you may know.. and helped me some time ago… and with it turned ON, it took two queries less, as a friend that is using it told me.
So. my msn is same as my e-mail adress and fell free to contact me anyway you want. Thanks!
|
|
|
|
|
But are you still talking about ALL pages running slow when SPF is activated? Because that really doesn't make sense. And 430 queries is far too high although ne eway you can build up the number of queries is to have a arge number of forums - but I do mean quite a large number.
My feelings were not hurt by the way. It takes quite a lot to hurt my feelings. I get angry at times like to the guy who sent me an email with a support question (and it states I don't do suport via email) and when I replied asking him to direct his question to the forum came back and said my support 'sucks'. That one made me angry as I spend hours sitting in front of this screen doing my best to help people. But a lttle constructive criticism is just fine.
|
|
|
7:09 pm 20 Aug 2008
| Diego Ferrari Bruno
Guest
| | | |
|
| |
|
|
Yes.. all the pages! locally is the same problem. i'm usin WP 2.5 yet. i'm planning to update it soon. so, I have made some studies on my own server (MAMP last version).
With my other plugins on or off the results are similar om my home page.
 SPF ON.
 SPF OFF.
Another thing…. i have a forum that is not visible to all users but if someonde has it RSS adress it could be read! can i block it?
i have about 350 users.
|
|
|
7:14 pm 20 Aug 2008
| Julian D.
Guest
| | | |
|
| |
|
|
Yes i wantet to ask how many peaople could be active ( online wirting posts etc ) at the same time without killig the server
Ill wait for mr.Papa
|
|
|
|
|
Diego: Well - I can tell you that the only part of the forum that runs on the home page (with the exception of template tags) is a quick check to discover whether the current view is the forum. If it is not then it gets out immediately and nothing else is loaded. I believe - and I haven't checked - that that uses one query and we only have to use that because of a bug in WordPress. Oh yes - and a get_option call which is carried out in memory vecause WP has already cached that.
Julian: That might be harder to find because I am not sure if we have ever been told! The most I have ever had on this site at one time (as you can see in the stats) was 71 which was some time ago. I probably average about 20.
|
|
|
7:41 pm 20 Aug 2008
| Julian D.
Guest
| | | |
|
| |
|
|
Mhm ok would benice to know if someone other knows in the forum please tell me
|
|
|
7:51 pm 20 Aug 2008
| Mr Papa
Moderator
| | Arizona, USA | |
|
| posts 1602 |
|
|
Hopefully football freak can come back and update us but he routinely was having several hundred users on at one time with no issues… frankly, if you are consistently over 50 users connected at one time, I hope you are on a vps or your own box… I am probably at the same number as Andy on my sites and have no issues but those are on a vps…
Diego: Are you by chance running any SPF template tags on your pages (like recent forum posts)? Diego, in the Manage options panel for SPF in the global tab, you can disable RSS feeds… The upcoming V3.2 will let you selectively disable feeds on a forum by forum basis. We continue to research private rss feeds, but there isnt really a standard out there… Can you give us a link to your site?
|
|
|
|
|
Whoops - yes - I forgot the RSS feed question. For private feeds you have to set up http authorisation on your server. I'm really not sure how that is set up but a search should turn something up. It isn't straghtforward though.
|
|
|
8:22 pm 20 Aug 2008
| Diego Ferrari Bruno
Guest
| | | |
|
| |
|
|
Mr Papa said:
Hopefully football freak can come back and update us but he routinely was having several hundred users on at one time with no issues… frankly, if you are consistently over 50 users connected at one time, I hope you are on a vps or your own box… I am probably at the same number as Andy on my sites and have no issues but those are on a vps…
Diego: Are you by chance running any SPF template tags on your pages (like recent forum posts)? Diego, in the Manage options panel for SPF in the global tab, you can disable RSS feeds… The upcoming V3.2 will let you selectively disable feeds on a forum by forum basis. We continue to research private rss feeds, but there isnt really a standard out there… Can you give us a link to your site?
As i said, my simple:press forum is off today. but after 01h00 (local time) i'll turn it on. anyway.. http://www.sur10.net/forum Nice blocked feeds! = )
And yellow.. i thought about this check forum page thing, i just don't know why it's not working right. = P
Thanks
|
|
|
4:53 am 21 Aug 2008
| Diego Ferrari Bruno
Guest
| | | |
|
| |
|
|
are you guys around? i could turn the forum on now if you want to see it… please contact me by e-mail if you want to.
|
|
|
5:40 am 21 Aug 2008
| Mr Papa
Moderator
| | Arizona, USA | |
|
| posts 1602 |
|
|
I am around for another hour or so… Andy should be back on in three or four…
|
|