DB structure for a forum?

Sharky Forums


Results 1 to 3 of 3

Thread: DB structure for a forum?

  1. #1
    Tiger Shark
    Join Date
    Mar 2001
    Location
    Staffordshire, UK
    Posts
    963

    Cool DB structure for a forum?

    Hi,

    I'm thinking of writing a forum in asp soon.
    I was just wondering what sort of structure the db/dbs should have.

    I'd thought of maybe a seperate db for each forum, then a new table for each new post then the the replies are the rows in the tables.

    Is this a hell of a waste of space/resources?

    How would you do it?

    Thanks

    ------------------
    Microsoft has acknowledged that its engineers substituted certain file names with the phrase, "Netscape engineers are weenies," in some of its internet software.

    Oh well now we all know why Nutscrape is so crap!
    Bygones!
    You only Die once

  2. #2
    Ursus Arctos Moderatis Grizzly's Avatar
    Join Date
    Sep 2000
    Location
    Providence, RI USA
    Posts
    3,077

    Post

    Yeah that approach would be a pretty wasteful on both space and system resources.

    I've designed a few messageboards of my own, and they almost always boil down to 3 simple tables.

    I made a quick little PDF document to illustrate what I mean.

    Note:
    Primary Key's are in RED.
    And I drew some relational arrows so you can more easily see how the tables should be joined on Queries.

    http://grizz.dhs.org/ForumsDB.pdf



  3. #3
    Tiger Shark
    Join Date
    Mar 2001
    Location
    Staffordshire, UK
    Posts
    963

    Cool

    Thanks!



    ------------------
    Microsoft has acknowledged that its engineers substituted certain file names with the phrase, "Netscape engineers are weenies," in some of its internet software.

    Oh well now we all know why Nutscrape is so crap!
    Bygones!
    You only Die once

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •