Jump to content


Tables


8 replies to this topic

#1 l3lueMage

    Wanna Be Moderator

  • Publishing Betazoids
  • PipPipPipPip
  • 4,596 posts
  • Gender:Male
  • Location:San Francisco Bay Area

Posted 15 October 2007 - 11:18 PM

I have a question about Tables etc. and database design.

Do you create a different table for each 'page' that is different.

For example on Pixel2life does the Contact page have a different table then the About page in the database? And if so is it better to put these in completely different databases or just put them in diff tables but in the same database?

#2 pirateXcore

    Young Padawan

  • Members
  • Pip
  • 281 posts
  • Gender:Male

Posted 15 October 2007 - 11:39 PM

The About page would run off of a different table than the Contact one.
You would want them in the same database.
It's good to break up your stuff into small chunks, it's a lot nicer on the server.
It will also load faster for the user.

#3 l3lueMage

    Wanna Be Moderator

  • Publishing Betazoids
  • PipPipPipPip
  • 4,596 posts
  • Gender:Male
  • Location:San Francisco Bay Area

Posted 16 October 2007 - 12:01 AM

Okay, and is it better to have like forums in a diff db as the main site, and ya :D...like stuff related in 1 database and other stuff in other db ? o;

#4 Samy

    Young Padawan

  • Members
  • Pip
  • 4 posts

Posted 23 October 2007 - 05:24 PM

having both in the same db makes your script run faster

#5 Bug

    P2L Staff

  • P2L Staff
  • PipPipPipPip
  • 3,611 posts
  • Gender:Male
  • Location:Perth, Australia

Posted 23 October 2007 - 05:38 PM

And, theoretically speaking (because I've never done this before), having the forum and the main site in the same db is more efficient for connecting the user information with the main site?

#6 Samy

    Young Padawan

  • Members
  • Pip
  • 4 posts

Posted 24 October 2007 - 02:53 PM

better to use 2 dbs for forum and main site

#7 Bug

    P2L Staff

  • P2L Staff
  • PipPipPipPip
  • 3,611 posts
  • Gender:Male
  • Location:Perth, Australia

Posted 24 October 2007 - 11:22 PM

But why is that? How does having two dbs work more efficiently?

#8 hazard

    Young Padawan

  • Members
  • Pip
  • 41 posts

Posted 30 November 2007 - 04:48 PM

^ More organized imo.

#9 Wildhoney

    Young Padawan

  • Members
  • Pip
  • 31 posts

Posted 05 December 2007 - 07:40 PM

A lot more organised, and for the speed increase being as negligible as it is, as MySQL connect statements are exceptionally fast, 2 databases is the way forward.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users