Programming Theory
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Codewalkers ForumsOther TechnologiesProgramming Theory

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Codewalkers Forums Sponsor:
  #1  
Old June 27th, 2005, 03:42 AM
exequor exequor is offline
Contributing User
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 190 exequor User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 m 51 sec
Reputation Power: 2
Use of databases

Currently I'm with a webhost that offers me unlimited mysql databases. The truth is better I was only offered about 5 because I only had 3 and today I started moving all my tables to one. Can anyone tell me why it is bad to put all your tables in one database? I can't really find a good reason.

Reply With Quote
  #2  
Old June 28th, 2005, 11:09 PM
lig's Avatar
lig lig is offline
"Forum Nazi"
Codewalkers Demi-God (4500 - 4999 posts)
 
Join Date: Apr 2007
Location: Jacksonville, Fl
Posts: 4,727 lig User rank is Private First Class (20 - 50 Reputation Level)lig User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 4 Days 1 h 4 m 45 sec
Reputation Power: 6
RE: Use of databases

it isn't good, bad or indifferent. It is simply a way to organize your data. Multiple database allows you to seperate and isolate your data - you can have the same table names used in different databases. A single database allows for better interconnectivity between the tables - but you will need longer table names to see what they relate to.

Think of it this way - you can place everything into you web server public_html directory or you can break it out to various directorys.

Reply With Quote
  #3  
Old June 29th, 2005, 09:37 AM
honcho's Avatar
honcho honcho is offline
Contributing User
Codewalkers Beginner (1000 - 1499 posts)
 
Join Date: Apr 2007
Location: Cape Cod
Posts: 1,347 honcho User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 h 52 m 2 sec
Reputation Power: 3
RE: Use of databases

lig more or less right - multiple databases can just be cleaner in many cases if your needs are complex (various access to data, replication of some data but not others, etc.)

Quote:
A single database allows for better interconnectivity between the tables


I don't believe this is true. There is no real difference in joining tables in multiple databases vs. joining tables in the same database as long as they are on the same server.

Reply With Quote
  #4  
Old June 30th, 2005, 01:20 AM
exequor exequor is offline
Contributing User
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 190 exequor User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 m 51 sec
Reputation Power: 2
RE: Use of databases

Ok, I thought that having only one db could cause adverse performance in terms of db operations but since it doesn't then I'll keep all my tables for one website in one db. thank you guys for the info.

Reply With Quote
Reply

Viewing: Codewalkers ForumsOther TechnologiesProgramming Theory > Use of databases


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway