inherit
128590
0
Aug 25, 2012 20:46:48 GMT -8
Nick (Goodbye!)
AMF!
1,813
July 2008
nickos
|
Post by Nick (Goodbye!) on May 7, 2010 19:04:57 GMT -8
So I am creating an online software that will allow users to sign up for their own forum, and I was wondering if I should do Tables or Databases. What I mean, is should I have one giant database with tables that start with the prefix of the forum? Or should I have individual databases for each forum? I am looking for what you have had a good experience on doing. Factors that I am looking at is mainly speed. Thank you guys for your help.
|
|
inherit
130228
0
Jul 11, 2024 19:19:59 GMT -8
Charles Stover
1,731
August 2008
gamechief
|
Post by Charles Stover on May 8, 2010 10:16:48 GMT -8
Neither. Perhaps read a rather in-depth tutorial on database optimization before tackling such a SQL-intensive project.
|
|
inherit
100824
0
May 13, 2012 5:37:49 GMT -8
Michael
14,585
March 2007
wrighty
|
Post by Michael on May 9, 2010 8:15:17 GMT -8
For a forum, you need a mixture of tables per forum, and tables per item. But as Charles said, read some tutorials.
|
|
inherit
130228
0
Jul 11, 2024 19:19:59 GMT -8
Charles Stover
1,731
August 2008
gamechief
|
Post by Charles Stover on May 9, 2010 9:51:56 GMT -8
I don't think you would need to give each forum its own tables ever. That defeats the purpose of indexes. Multiple databases would make sense to prevent overloading one, but definitely not one forum per database. Maybe like a thousand per database, or until lagging starts.
|
|
inherit
128590
0
Aug 25, 2012 20:46:48 GMT -8
Nick (Goodbye!)
AMF!
1,813
July 2008
nickos
|
Post by Nick (Goodbye!) on May 9, 2010 19:21:23 GMT -8
I don't think you would need to give each forum its own tables ever. That defeats the purpose of indexes. Multiple databases would make sense to prevent overloading one, but definitely not one forum per database. Maybe like a thousand per database, or until lagging starts. That's a good Idea. I'd probably have at least 1 db per server.
|
|
inherit
93249
0
Aug 16, 2021 23:42:33 GMT -8
infestor1
.:.:.:.:.:.:.:.:.:.:.:.:.
3,056
November 2006
infestor1
|
Post by infestor1 on May 9, 2010 20:29:52 GMT -8
What I personally use is a couple of tables per forum.
Like if you sign up with forum "soccer", then these would be the tables:
soccer_boards soccer_users soccer_posts soccer_pm soccer_settings
I use that because any project that I start would get at max like 100 forums... If you were going for a larger scale forum hosting service like Proboards or other services, then you might want to take advice from someone else.
|
|