I’m wondering how websites like youtube/facebook/stackoverflow etc. work. Do they use single database with many tables or multiple databases? If so (multiple), why? Is it faster option?
I’m wondering how websites like youtube/facebook/stackoverflow etc. work. Do they use single database with
Share
There is nothing to do with performance.
Databases separate unrelated data domains and deploying items.
If two tables might be related to the same application then they should be in the same database.
One exception is when a table is reused accross many unrelated applications. Then it can have its own database and then the apps can use more than one database.