•
•
•
•
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
![]() |
•
•
Join Date: Feb 2006
Posts: 18
Reputation:
Rep Power: 3
Solved Threads: 0
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????
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????
•
•
Join Date: Apr 2008
Posts: 295
Reputation:
Rep Power: 1
Solved Threads: 41
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
>>> 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.
•
•
Join Date: Feb 2006
Posts: 18
Reputation:
Rep Power: 3
Solved Threads: 0
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.
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.
![]() |
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
•
•
•
•
•
•
•
•
DaniWeb Database Design Marketplace
Similar Threads
- fstream Tutorial (C++)
- memory management in wndows 2000 (Windows NT / 2000 / XP / 2003)
- How to properly use tables in db? (PHP)
- Pro.. Can i have ur moment.. (Visual Basic 4 / 5 / 6)
- PeopleSoft Admin/Oracle DBA (Software Development Job Offers)
- Connecting to a SQL Server Database using VB (VB.NET)
- overwriting files. (Visual Basic 4 / 5 / 6)
Other Threads in the Database Design Forum
- Previous Thread: Relational algebra question
- Next Thread: Whether my database structure is right or wrong?


Linear Mode