User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the Database Design section within the Web Development category of DaniWeb, a massive community of 397,683 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,499 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our Database Design advertiser:
Views: 780 | Replies: 3
Reply
Join Date: Feb 2006
Posts: 18
Reputation: rich_m is an unknown quantity at this point 
Rep Power: 3
Solved Threads: 0
rich_m rich_m is offline Offline
Newbie Poster

Different DataBases for a Single Project

  #1  
Jul 12th, 2008
My team( all freshers) are developing a project that will involve many Modules.

I want to know if it is a good practice to have different databases for a single project!!! I know that this could lead to a bad design, if you make the wrong decisions of placing the respective tables.

Each database of a module will contain only the module specific tables (that do not need communication to the other tables of other modules), commonly used tables will be placed in a common database.

I want to know the demerits of such a design, cause junking up a database with a lot of tables, seems to be a very complicated system to understand, I mean the documentation part.

Can we relate tables in different databases????
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Apr 2008
Posts: 295
Reputation: tesuji is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 41
tesuji tesuji is offline Offline
Posting Whiz in Training

Re: Different DataBases for a Single Project

  #2  
Jul 13th, 2008
Hi rich_m

>>> My team( all freshers) are developing a project that will involve many Modules.

You must be "sophos ke moros" to carry out such database design successfully, which is every project's most crucial design phase. So wait a year or two until you will have past database design course.

>>> I want to know if it is a good practice to have different databases for a single project!!!

Bad practise, don't do that!!!

>>> I know that this could lead to a bad design, if you make the wrong decisions of placing the respective tables.

No, it couldn't lead to but it is terribly bad design.

>>> Each database of a module will contain only the module specific tables (that do not need communication to the other tables of other modules), commonly used tables will be placed in a common database.

Eh, to make chaos complete, you also plan a "centralised, common" database. Will everybody who programs modules also be allowed to design his module-focused tables himself? That would really speed-up into chaos.

>>> I want to know the demerits of such a design, cause junking up a database with a lot
of tables, seems to be a very complicated system to understand, I mean the documentation
part.

After having collected a billion penalty marks you are going to redesign that datamodel
for the third time. Btw, no matter how complicate a datamodel is, its ERM would be the best-ever documentation for any project.

>>> Can we relate tables in different databases????

Do you mean ensuring referential integrity by means of foreign keys????
Being freshers, you are supposed you cannot do that.

OK, to bring it to an end, I suggest you to peep at a famous sample: SAP R/3 what consists of over 17000 tables. There are companies running R/3 on a single MS Sql Server or Oracle database (Mysql impossible) filled with over 10 Tera-bytes data.

If you don't like to fail again, you should really do correct and complete relational database design where the fundamental goal must be designing tables which satisfy third normal form. Yes, third normal form! All tables must have primary keys. Every relationship must be implemented with correctly defined foreign keys. Never omit them! Never introduce a surrogate key on the quick. Before that you should carefully check the table's columns whether candidate keys exists. If you find one, you should make him primary key.

krs,
tesu
Information is moving—you know, nightly news is one way, of course, but it's also moving through the blogosphere and through the Internets. I promise you I will listen to what has been said here, even though I wasn't here. Ann and I will carry out this equivocal message to the world. I'm the master of low expectations.
Reply With Quote  
Join Date: Feb 2006
Posts: 18
Reputation: rich_m is an unknown quantity at this point 
Rep Power: 3
Solved Threads: 0
rich_m rich_m is offline Offline
Newbie Poster

Re: Different DataBases for a Single Project

  #3  
Jul 18th, 2008
Thanks a million for your time!!!!

Now that I got that clear, will be moving on to the design.....why do u say MySql impossible???? I was hoping that after Sun bought it off.....its gonna crash all the others......cause it is open source + we have Sun brand.
Reply With Quote  
Join Date: Feb 2006
Posts: 18
Reputation: rich_m is an unknown quantity at this point 
Rep Power: 3
Solved Threads: 0
rich_m rich_m is offline Offline
Newbie Poster

Re: Can we relate tables in different databases????

  #4  
28 Days Ago
I just found ou that the answer to the Question "Can we relate tables in different databases????" is YES

If MySql has provided a feature to inter relate tables from different databases, i think ther should be some purpose for the same.

I created 2 databases, and managed to suceesfully to a foreign key relation ship by appending the database name.

It really makes a lot more meaning to have this feature!!! It leads to better DB documentaion, my logical perspective about relational tables, is tht it helps keep the data in shape and improves performance. So if MySql provide such a feature, i guess all this is taken care off!!!

Awaiting all your comments.
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

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

 

DaniWeb Database Design Marketplace
Thread Tools Display Modes

Similar Threads
Other Threads in the Database Design Forum

All times are GMT -4. The time now is 12:47 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC