Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

Most Efficient way to organize database with data for seperate organizations

So this is more of a theoretical question. I am fairly new to databases, but here is my issue. I have a website which has users which will be divided up into different organizations. These organizations have nothing to do with each other, would I want to store them all in separate databases? different tables? or store them in the same databases and tables with columns to specify which organization they are a part of? Currently using SQLite but willing to move.

>Solution :

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

You basically have two options.

1#:
Hold everthing in one database, add additional fields to your tables and some logic to deceide who has access to what. Cons: That will be a mess, Pros: you will have less issues when transferring data from one organization to another.

2#:
Create a fresh new database for each organization. Cons: More data transfer needed when transferring data between organizations, Pros: Far less logic and data mess. 🙂

I would prefer the second option. But there is a lot of software out there which was build with the first option in mind.

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading