TalkPHP
 
 
Account Login
Latest Articles
» The basic usage of PHPTAL, a XML/XHTML template library for PHP
» Vulnerable methods and the areas they are commonly trusted in.
» Simple way to protect a form from bot
» The Basics On: How Session Stealing Works
» How to keep your forms from double posting data
IRC Channel
IRC Speech Bubble Join the friendly bunch on IRC...
(#TalkPHP on Freenode)

...Also available via a web interface.

See this thread for information on the TalkPHP Free Hugs Initiative™. Subject to availability.
Associates
Associates
CSS Tutorials
Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old 12-19-2007, 04:01 PM   #1 (permalink)
The Visitor
 
Join Date: Dec 2007
Posts: 3
Thanks: 0
AnthonyOS is on a distinguished road
Bricks Important Database Structure Question!

I've searched around quiet a bit for an answer to my question but haven't been successful so now I hope that the members of this great forum can enlighten me with a satisfactory answer.

Ok so my question may sound like a newbie one and for that forgive me but in all my other web applications using db's one database containing all tables did the job just fine as they were not too full with content. But my newest database driven site is a very large-scale social networking and resource site and for that reason I have the following question:

Which is better structure, 1 database with all tables needed or many databases with 1-2 tables in each??

I hope you can help me with this and apologies for the long intro.

Thanks in advance!
AnthonyOS is offline  
Reply With Quote
Old 12-19-2007, 06:19 PM   #2 (permalink)
The Frequenter
Prolific Welcomer Upcoming Programmer 
 
Join Date: Sep 2007
Posts: 360
Thanks: 24
Haris is on a distinguished road
Default

1 database with all the tables is certainly the most widely used database design.
__________________
Necessity is the mother of invention.

My blog
Haris is offline  
Reply With Quote
Old 12-19-2007, 10:48 PM   #3 (permalink)
The Visitor
 
Join Date: Dec 2007
Posts: 3
Thanks: 0
AnthonyOS is on a distinguished road
Default

Quote:
Originally Posted by Haris View Post
1 database with all the tables is certainly the most widely used database design.
But would that be considered the best solution and most efficient or just the most common?
AnthonyOS is offline  
Reply With Quote
Old 12-20-2007, 12:56 AM   #4 (permalink)
The Frequenter
Prolific Welcomer Upcoming Programmer 
 
Join Date: Sep 2007
Posts: 360
Thanks: 24
Haris is on a distinguished road
Default

Quote:
Originally Posted by AnthonyOS View Post
But would that be considered the best solution and most efficient or just the most common?
Yes, it will be.
__________________
Necessity is the mother of invention.

My blog
Haris is offline  
Reply With Quote
Old 12-20-2007, 04:12 AM   #5 (permalink)
Wizard
Top Contributor 
 
Village Idiot's Avatar
 
Join Date: Sep 2007
Posts: 1,299
Thanks: 17
Village Idiot is on a distinguished road
Default

There is no need for more the one database unless you are dealing with millions and millions of rows. At that point you would need an SQL server. Just use one database.
__________________

Village Idiot is offline  
Reply With Quote
Old 12-20-2007, 03:26 PM   #6 (permalink)
The Visitor
 
Join Date: Dec 2007
Posts: 3
Thanks: 0
AnthonyOS is on a distinguished road
Default

That's great guys. Thanks alot for the rapid feedback!
AnthonyOS is offline  
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT. The time now is 03:50 AM.

 
     

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Inactive Reminders By Icora Web Design