Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: Jul 1999
Posts: 118
Enthusiast
Enthusiast
Offline
Joined: Jul 1999
Posts: 118
maybe we could just move old threads over to another archive forum. On the same database. But all the new stuff will run on the main forum. Which seems to be 3 times as fast.

So in other words

active main forum 1000 posts

archive forum 200 000 posts.


Question: I have some inkling that this is due to bad inefficient programming. The same purpose could be reached by reprogramming some database requests! or reorganizing the database??



This is postlist in a small forum with 1000 posts
Generated in 0.439 seconds in which 0.281 seconds were spent on a total of 29 queries. Zlib compression enabled.


The following is postlist in a large forum with 150 000 posts.
Generated in 3.513 seconds in which 3.417 seconds were spent on a total of 29 queries. Zlib compression enabled.

1100 posts
Generated in 0.245 seconds in which 0.178 seconds were spent on a total of 30 queries. Zlib compression enabled.


All this makes a little sense. Postlist is slower for large forums. Still, it does not look like this is necessary! After all, the first page of postlist.php is the same size, in the small 1000 post forum or in the 150 000 post forum.



Now it gets interesting!!

Showflat in the small 500 post forum
Generated in 0.102 seconds in which 0.049 seconds were spent on a total of 13 queries. Zlib compression enabled.


showflat in the big 150 000 forum
Generated in 1.168 seconds in which 1.114 seconds were spent on a total of 13 queries. Zlib compression enabled.


I did all this repeatedly, this is not a quirk or accident. Please someone find out why this is so, then maybe we can reorganize the database in some way.

I see no logical need why showflat in a large forum takes 10 times longer than in a small forum!!! What is worse, most action happens in the large forum.

If there is no simple database reorganization trick, then let us just do automatic bulk moving to archive boards on the same database, on the same board.


Note: I already put the default on seeing only 2 days worth of posts, I think this speeds up things considerably!!

There should be some indexing trick, like indexing the day and week of the first and/or last post. Most posts refer to the last 2 day's or last week's posts. So if that were indexed, only last 2 days were searched initially, that would do the trick!!!!!! If we only chose to display the last 2 days, then only that part of the database should be searched!!

Until the settings get changed (display more than 2 days worth of posts!!)

Sponsored Links
Entire Thread
Subject Posted By Posted
How to do an archive forum to save CPU load? mario2 06/15/2003 10:55 AM
nobody can comment? it is a typical feature in other boards!! mario2 06/16/2003 9:47 AM
Re: nobody can comment? it is a typical feature in other boards!! JoshPet 06/16/2003 11:11 AM
Re: nobody can comment? it is a typical feature in other boards!! JustDave 06/16/2003 3:45 PM
Interesting!! small forums load faster both postlist and showflat!! mario2 06/17/2003 8:50 PM
I think this can save 1000's of $ in hardware cost for large ubbthreads mario2 06/17/2003 9:20 PM
Re: I think this can save 1000's of $ in hardware cost for large ubbthreads Astaran 06/18/2003 10:59 AM
My experiments SHOWED that this can save hardware cost for large ubbthreads mario2 06/18/2003 1:39 PM
admins should be able to restrict "search" privileges mario2 06/18/2003 1:42 PM
Re: My experiments SHOWED that this can save hardware cost for large ubbthr Astaran 06/18/2003 2:15 PM
Re: admins should be able to restrict "search" privileges Astaran 06/18/2003 2:16 PM
My board seems to have few searches, but search could be used for DNSattack mario2 06/18/2003 2:44 PM
Re: My board seems to have few searches, but search could be used for DNSat Astaran 06/18/2003 3:10 PM
Re: My board seems to have few searches, but search could be used for DNSat Dave_L_dup1 06/18/2003 3:35 PM
Re: My board seems to have few searches, but search could be used for DNSat Astaran 06/18/2003 4:01 PM
I implemented the archive forum& reduced CPU load from 80% to 20% mario2 06/30/2003 3:00 PM

Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
isaac
isaac
California
Posts: 1,157
Joined: July 2001
Forum Statistics
Forums63
Topics37,575
Posts293,931
Members13,823
Most Online6,139
Sep 21st, 2024
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,834
Greg Hard 4,625
Top Posters(30 Days)
Gizmo 1
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2025 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.1
(Snapshot build 20240918)