Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Large websites - multiple databases or or multiple tables?

Tags:

database

mysql

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?

like image 956
Jack Avatar asked Mar 08 '12 18:03

Jack


People also ask

Is it better to have one database or multiple databases?

Maintaining a single database system is more straightforward than handling multiple database systems. It is also slightly easier to get statistics on an application's usage if they operate a single database system. It is easier to develop an administrator application.

Can a website have multiple databases?

You can try some cloud data management platforms. Generally, this kind of platforms supports connecting multiple databases, such as MySQL, PostgreSQL or MongoDB, so you can connect several databases at the same time.

Should you have multiple databases?

Try to keep logically related information together and unrelated information separate. Try to avoid multiple databases or tables with the same design or purpose. Multiple database apps are usually apps which have their own data requirements but also have to integrate with another existing app or service's database.

How many databases do I need for my website?

If you think you're site will grow or will like to take your site to the next level I would go with a host that offers at least 2-5 mysql databases.


1 Answers

You can find some information here:
Example : Youtube Architecture
On this website, you will also see the evolution of Youtube which can be interesting for you in order to know how it works.

like image 103
ChapMic Avatar answered Sep 28 '22 10:09

ChapMic