Hi
If a ecommerce website is used in multiple countries (each site defined like www.example.com www.example.co.uk www.example.ie etc) how best could I set the databases up?
One point which is a must is that user accounts are unique to the country so if you want to by from .co.uk and .ie you will need to setup an account on each site.
Below is the three options I have although I’m not sure which one is best from an overall database structure and response time point of view.
[INDENT]1. Have one DB with tables which hold the exact same data across all sites then each site will have its own database which will hold unique data (customer accounts etc) relating to the site although the database structure will be exactly the same for each site.
-
Have one big database with all tables although each site will have its own database which consists of views relating to the main DB to retrieve data relating to the specific site being used only.
-
Have one big database across all sites with an id in tables which hold data relating to different sites so each sites data can be identified.[/INDENT]
Point 3 is the easiest if the DB structure needs to be changed although its likely some tables could end up with 10+ million rows which require near instant replies to SQL queries so I’m leaning more towards point 1.
Look forward to your comments.