Solved

same table in different databases with different data vs single table in singlle database

Posted on 2011-02-23
4
228 Views
Last Modified: 2012-05-11
Actually i am designing a database in MySql, In that the structure is there is one root organization  and there are several child organization. So should I go for a single databse in which the group interrelated tables store the data identified by a unique id to differentiate each child organization.
Or should I maintain different databases for each child organization with the same table structure and same tables  in all of them, but data related to each of them.
0
Comment
Question by:darien_software
  • 3
4 Comments
 
LVL 14

Accepted Solution

by:
Scott Madeira earned 500 total points
ID: 34960572
Personally I would design the database as one set of tables holding all of the data. That way you can always aggregate data should the need ever arise.  For the actual data tables I would add an organizationID to indicate which organization the data pertains to.

If you do it the other way I can almost guarantee you that somebody will want to see aggregated data and you won't have an easy way to do that.
0
 

Author Comment

by:darien_software
ID: 35230293
please answer it
0
 

Author Comment

by:darien_software
ID: 36109735
Yes that is correct in multiple database environment it is difficult to get the data organization wise and year wise.but i am concern about performance.
thanks.
0
 

Author Closing Comment

by:darien_software
ID: 36129219
I am expecting a detail anatomy about the effect on the performance and all the detail ie when the tables from  multiple databases are loaded into memory.
0

Featured Post

Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction In this article, I will by showing a nice little trick for MySQL similar to that of my previous EE Article for SQLite (http://www.sqlite.org/), A SQLite Tidbit: Quick Numbers Table Generation (http://www.experts-exchange.com/A_3570.htm…
I have been using r1soft Continuous Data Protection (http://www.r1soft.com/linux-cdp/) for many years now with the mySQL Addon and wanted to share a trick I have used several times. For those of us that don't have the luxury of using all transact…
This is used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

895 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now