Previous Thread
Next Thread
Print Thread
Hop To
Joined: Aug 2004
Posts: 460
Addict
Addict
Joined: Aug 2004
Posts: 460
As data capacity is skyrocketing nowadays (blue ray, even email accounts are now given limits in gigabytes and not megabytes, pendrives with 8 gigs, etc.), purging posts to create space is no longer an issue.

The Posts table is by far the largest in the database, and this can bog the server down as the table shoots past 1.5GB worth of posts.

Wouldn't a good way forward be for the forum software to create a separate posts table for each calendar year?

This way the entire board wouldn't be based on a single posts table which can reach massive proportions over time, but would instead be neatly organized by year: ubbt_POSTS_2008 , ubbt_POSTS_2009 , ubbt_POSTS_2010 , etc.

The search engine would also have it easy in terms of search dates and which table to sift through.

Joined: Aug 2006
Posts: 1,358
Y
Veteran
Veteran
Y Offline
Joined: Aug 2006
Posts: 1,358
Originally Posted by Conrad
purging posts to create space is no longer an issue.


Sorry, but for some of us, it's still an issue. We are on sponsored webspace with themepark.nl, and our limit is basicly our limit.

So don't write of auto purging psots of yet smile


[Linked Image from siemons.org]
Joined: Aug 2006
Posts: 1,358
Y
Veteran
Veteran
Y Offline
Joined: Aug 2006
Posts: 1,358
Originally Posted by Conrad
The Posts table is by far the largest in the database,


I gave it some more thought, and there is a very easy way to almost half the size of the posts table.

The USERS tables are all split up to maximise performance, and you could do the same for the POSTS table. If you would split of the actual content of the post with the UBB Markup code in it, you would end up with 2 smaller tables. The marked up version is only needed when quoting messages and editing posts.


[Linked Image from siemons.org]
Joined: Dec 2007
Posts: 12
O
stranger
stranger
O Offline
Joined: Dec 2007
Posts: 12
Keep discussing this guys, sounds very interesting...

Joined: Jun 2006
Posts: 16,301
Likes: 116
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,301
Likes: 116
the posts table is split off from the topics table for performance. the markup version vs the parsed version of the table are also split off into seperate fields in the same table.


I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Do you need Forum Install or Upgrade Services?
Forums: A Gardeners Forum, Scouters World
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!
Joined: Aug 2004
Posts: 460
Addict
Addict
Joined: Aug 2004
Posts: 460
In the long run, with a board that keeps growing and growing, the posts should be split up as sooner or later you end up with a huge 1.5 GB table that still continues to expand and is less effective to deal with.

Splitting up and arranging them according to time/date (ubbt_POSTS_2008 , ubbt_POSTS_2009 , etc.) seems to be the most logical way of doing it, especially when it comes to the search function.

Joined: Aug 2006
Posts: 1,358
Y
Veteran
Veteran
Y Offline
Joined: Aug 2006
Posts: 1,358
time/date looks handy, but in practise it's not too nice, especially in januari where you have to display posts from both this year and last year.


[Linked Image from siemons.org]
Joined: Aug 2004
Posts: 460
Addict
Addict
Joined: Aug 2004
Posts: 460
If you divide up the posts you have to use some criteria, and if it's to be done automatically then some sort of time-based division seems to be the most logical way. Unless it makes sense to create new tables due to size, so as soon as one table reaches say 500 megs then a new one is formed?


Link Copied to Clipboard
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
Version 7.7.5 Images suddenly not displaying
by Stovebolt - 05/04/2024 11:19 AM
Do I need to rebuild my database?
by Baldeagle - 04/07/2024 2:58 AM
Who's Online Now
1 members (Ruben), 1,277 guests, and 207 robots.
Key: Admin, Global Mod, Mod
Random Gallery Image
Latest Gallery Images
Los Angeles
Los Angeles
by isaac, August 6
3D Creations
3D Creations
by JAISP, December 30
Artistic structures
Artistic structures
by isaac, August 29
Stones
Stones
by isaac, August 19
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20240506)