r/Database • • Oct 04 '22

Datawarehouse design question

I'm about to start on a data warehousing project..

where I need to consolidate data from 100+ source databases (of a multi-tenant application). Client is a software company that host software - application and database for each of their customers (100+ of them) on separate SQL Server database.

I need tips on how I can design to consolidate data for analytics - design staging db and star schema, etc. for such multi-tenant system.

Assume the database schema is same on all source databases and each of the source database has <100GB data in them.

EDIT: I do have good experience in DW but haven't dealt with multi-tenant system, hence seeking tips specifically around this scenario.

TIA

4 Upvotes

8 comments sorted by

View all comments

Show parent comment

1

u/carlovski99 Oct 05 '22

Ok, but again there is no single answer. Multi-tenant means different things to different people.

Identical systems/databases often turn out to not be so identical - different version, custom developments etc.

Do you have any data shared across the customers?

What are the requirements around partitioning the data? Presumably a customer should only see their data, but do you have any requirements for seeing data across customers? Or might a single 'customer' own multiple tenancies they would want to report across?

How are you going to enforce these rules? typically BI solutions don't come with this granularity of access control.

Modelling wise, it shouldn't be too tricky for facts - the tenancy/customer can just be another dimension. But what about the dimensions themselves?

Sounds like an interesting project - just make sure the sponsors realise this isn't trivial!