Previous Thread
Next Thread
Print Thread
Rate Thread
rbgolfn #210335 04/29/2001 12:05 PM
Joined: Jul 2000
Posts: 82
Member
Member
Offline
Joined: Jul 2000
Posts: 82
Well, I'm not Scream but I'll try an answer anyway []/testimages/icons/smile.gif[/].

I read somewhere or other (and I can't find the reference now...) that if you divide a table into lots of tables you can hinder MySQL's ability to buffer things (and I suppose you can run out of file descriptors too). I don't know how to quantify the impact though.

I think I've read before that W3T used to use a separate table for each board but it was changed because some shared hosting accounts were not allowed to have so many tables (probably for the reasons above).

One problem with this approach is that if it fixes the problem it only does so temporarily. As the number of posts increases you will eventually hit the point where each board is individually as large as the entire forum is right now, and then you're out of luck--no way to further subdivide it. In contrast, with the method I proposed (cutting into "new" vs. "old" posts) the table that the insertions go into doesn't grow as the board gets older because you keep emptying it out (into the "old" table) periodically. Also, if you divide up the posts table by board and you have 10 boards you have reduced the size of the table where the insertions go by roughly a factor of 10 (assuming all boards are about the same size) whereas doing the new-old split allows you to make the insertion table arbitrarily small by increasing the frequency of sweeping the new posts into the old table (you probably have to shut down the forum when you do this, so once a day is probably the most that is practical). If your forum is 1 year old and you sweep every day, the insertion table will be roughly 365 times smaller than it is now.

P.S. Does anybody know why this says that insertion time goes like N*log(N)? To me it seems like it should just be log(N) (i.e. the amount of time it takes to work through the tree to find the node where the insertion happens). Maybe they are talking about the time it takes to insert N items rather than the time it takes to insert 1 item when there are already N of them in the table (although that's really not the relevant thing in this context)?

Bill Dimm, SaveTheFreeWeb.com

Sponsored Links
Entire Thread
Subject Posted By Posted
Performance stroker 04/26/2001 8:50 PM
Re: Performance Rick 04/27/2001 12:47 AM
Re: Performance jriihi 04/27/2001 7:12 AM
Re: Performance Mors 04/27/2001 7:26 AM
Re: Performance Rick 04/27/2001 3:05 PM
Re: Performance stroker 04/27/2001 9:36 PM
Re: Performance aantix 04/28/2001 12:32 AM
Re: Performance Rick 04/28/2001 12:47 AM
Re: Performance Eileen 04/28/2001 2:59 AM
Re: Another Note on Performance aantix 04/28/2001 7:22 AM
Re: Another Note on Performance stroker 04/28/2001 8:34 AM
Re: Performance BillD 04/29/2001 3:11 AM
Re: Performance aantix 04/29/2001 5:13 AM
Re: Performance jriihi 04/29/2001 7:05 AM
Re: Performance BillD 04/29/2001 7:05 PM
Re: Performance stroker 04/29/2001 8:19 PM
Re: Performance BillD 04/29/2001 8:34 PM
Re: Performance stroker 04/29/2001 8:51 PM
95% of w3thread database writes are non-essential mario2 06/13/2001 9:18 AM

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
Bill B
Bill B
Issaquah, WA
Posts: 87
Joined: December 2001
Forum Statistics
Forums63
Topics37,575
Posts293,932
Members13,824
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,835
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)