Drupal multiple databases

Dear experts,

I need an advice please. I am starting to build a social networking site using drupal Commons. A friend told me that I should have four different databases to store: 1: user registration information, 2: users location and 3: their food preferences and the 4th one would store everything else, like modules, content types, views etc..
The reason why he would like to do it that way is to have a easier way to find that data in case the site gets say 50.000 thousands register users.
I am not pretty sure if I should store everything in just one database or follow my friend advice. Could you please give me some insights?


Who is Participating?
magentoConnect With a Mentor Commented:
Hi ,

Please find the db config for multiple instances.


This explains how to add multiple db's


Also , i have heard for performance you can also use sqlite as external db .

Dave BaldwinConnect With a Mentor Fixer of ProblemsCommented:
Just start with one.  If you get enough visitors and make enough money, you can hire others to split up the databases and keep them working.
glepizaAuthor Commented:
Thanks for your answering, but now ir seems my client wants those databases. Is it too difficult to make those from the beggining?
Dave BaldwinConnect With a Mentor Fixer of ProblemsCommented:
Here https://drupal.org/developing/api/database is the documentation.  It says that Drupal can handle multiple database servers.  That could speed things up.  But using multiple databases on the same server doesn't necessarily do that.

This page https://drupal.org/documentation/install goes thru the installation of Drupal.  In the stock installation, there is no mention of multiple databases.  That is something you would probably have to do after Drupal is installed.

In any case, there will be a lot of work to do to get it running with more than one database.
glepizaAuthor Commented:
Thank you guys!
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.