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?
Tables
Started by l3lueMage, Oct 15 2007 11:18 PM
8 replies to this topic
#1
Posted 15 October 2007 - 11:18 PM
#2
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.
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
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
...like stuff related in 1 database and other stuff in other db ? o;
#4
Posted 23 October 2007 - 05:24 PM
having both in the same db makes your script run faster
#5
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
Posted 24 October 2007 - 02:53 PM
better to use 2 dbs for forum and main site
#7
Posted 24 October 2007 - 11:22 PM
But why is that? How does having two dbs work more efficiently?
#8
Posted 30 November 2007 - 04:48 PM
^ More organized imo.
#9
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
