Reputation: 229
I have to implement a system that contain multi-sites using Drupal. ( expected 1000 sites) Drupal allow us to use multi databases or one database with prefix. With thousands of sites, I may choose multi databases instead of one database with prefix. And All databases have same table structure. But the problem is : There are some very frequently query that collect information from all sites ( all databases). For example: Select 20 products have category is Shoes and has good voting rate from all databases. I have 3 solutions right now :
Please give me more advices . Thank you very much. P.S: And please tell me more about problems with database maintain when I have 1000s same databases.
Upvotes: 2
Views: 527
Reputation: 472
I just want to make sure you are aware of Drupal's out-of-the-box multisite functionality? All you have to do is make a new folder in the sites folder, and either create a symbolic link to it and/or add it to the sites.php (which may or may not work depending on server).
Sorry if you already knew this, wanted to make sure you don't custom do a solution if this will work for you. It handles multiple sites with their own databases on a single Drupal install quite well. Unfortunately I can't help with the multiple database queries from a single site, in the past I have just done so with a manual PHP query.
Upvotes: 1