 |
 |
 |
 |
Registered: 11/17/06
Posts: 120
|
|
|
 |
 |
 |
 |
|
 |
 |
 |
 |
#219041 - 11/10/08 10:41 PM
Applied suggestions to improve the performance of UBB
|
stranger
Registered: 02/15/08
Posts: 18
|
Hi there,
Ok , I am going to talk about my case which I feel its become really one of the most things I am spending time for it .
UBB is fast for 100,000 USERS and below, but last few months I notied a slow down in my server performance (MYSQL), and after many investigations , I found the reason, which is USERS and USER_PROFILE and USER_DATA tables reached to +300,000 Members (I am running a server with high specifications 8 CPU's + 32 GB/RAM )
As optimizations and normalizations , first thing I decided to do is
I did small changes in the tables (USER_PROFILE) : I removed all extra fields which was ( 5 fields) because ( 99% of users not unsing it) I removed all (ICQ, MSN, YAHOO etc ..) because of( 96% of my users not using it) .
And the result was increasing of mysql performance with over than 30%
What is the benefit of empty fields if my members not using it at all ??
I added another tables named USER_EXTRA and I put only 3 field on it :
(USER_ID , USER_FIELD_NAME, USER_FIELD_DETAILS)
So every user can have unlimited of extera field in their profile if they want .
Also, I suggest to remove un-necessary fields in USERS table and keep the important fields for login/authentication purpose , which will contain only 4 fields : USER_ID, USER_LOGIN_NAME, USER_MEMBERSHIP_LEVEL, USER_IS_BANNED)
This is the most usage process in the within all script files , and for large numbers of users (+300,000) it’s a big challenging for webmasters, so we need only small table to manage this task , this will speed up the response time about +20% if I am not wrong .
Also , I am not happy with the Smarty plug-in , as I feel its slowing down the performance of the script , as I am still running the old ubb.inc.php for 6.x , because of some hacks I did for my websites since the old version 6.x (without smarty) and that hacks 100% faster than reading any posts or viewing and forum in the new 7.4 version, which is using smarty , I can prove this with evidence.
If you have new installation of UBB with less than 10,000 USERS you will not notice this problem .
What I want to conclude is that there are many area of this script need to tunning up, and specially in DB area.
Now I am facing a problem of upgrading , because every time I have to change all scripts which dealing with the USER_PROFILE table if I want to upgrade UBB !!
So , hope that my message reached clear to the developers and specially Mr. Rick .
Thank you, AlNadabi
_________________________
"The Simple Life always walks smoothly, so to make your life smooth, keep every things simple in your life" AlNadabi ================= www.majalisna.com
|
|
Top
|
|
|
|
|
 |
 |
 |
 |
 |
 |
 |
 |
#219080 - 11/11/08 11:46 AM
Re: Applied suggestions to improve the performance of UBB
[Re: Rick]
|
stranger
Registered: 02/15/08
Posts: 18
|
Thank you for the positive reply, That will be a very good sign for the next version, I am old customer with UBB, since 2000 (wwwthreads) , and I upgraded my ubb to all versions since 2.x if I am not mistaken I cant remember exactly the version # (become old  ) . And to tell you the truth, every time the script become bigger, the performance become slower , even now most people using ADSL , and very rear connecting with dail-up , but I feel that wwwthreads was very fast with dail-up in that days, why ?? Because of code simplicity !!! The fastest bulletin boards script available until now is forumKIT 1.2 , its owned by Khalid AlDousri , owner of one of the largest sport website on the net http://www.goalzz.com (English), and http://forum.kooora.com (Arabic) the global site rank is 249 only , it has +15,000,000 members and over than 170,000,000 posts , he have online users in the peak hrs reaching to 250,000 at the same time . This script is not for sale, and he design this script for his website only , and he got an offer to sale the script for 6 million USD but he rejected the offer . Why this script is fast ?? because of simplicity , very very simple but very very high in performance . I am really jealous of this, why we need to have many features if that feature will slow down the speed of the script?? from my point of view better to Waiving out some features in order to obtain speed. Thank you again , and hope we can see an improvement of speed very soon  Regards, Bader AlNadabi
_________________________
"The Simple Life always walks smoothly, so to make your life smooth, keep every things simple in your life" AlNadabi ================= www.majalisna.com
|
|
Top
|
|
|
|
|
 |
 |
 |
 |
 |
 |
 |
 |
#219245 - 11/14/08 02:17 AM
Re: Applied suggestions to improve the performance of UBB
[Re: ntdoc]
|
stranger
Registered: 02/15/08
Posts: 18
|
I can not find any link that takes you to a discussion.
currently the forum is in arabic version , here : http://forum.kooora.com/Regards, Bader
_________________________
"The Simple Life always walks smoothly, so to make your life smooth, keep every things simple in your life" AlNadabi ================= www.majalisna.com
|
|
Top
|
|
|
|
|
 |
 |
 |
 |
|
|