Design a Warehouse Model for Marketplace Analytics
You are designing a warehouse model for an e-commerce marketplace with buyers, sellers, orders, order_items, payments, and page_view events. The goal is to support the following metrics:
-
Daily session-to-purchase conversion rate
-
Average order value (AOV)
-
7-day buyer retention by signup cohort
-
Cancellation rate by seller
-
Daily GMV by category
Provide a dimensional model proposal that specifies:
-
Fact and dimension tables
-
The grain of each table
-
Key columns (primary and foreign keys)
-
Important attributes and data types
-
Partitioning and clustering strategy
-
Handling of late-arriving events, deduplication, null/anonymous users, and slowly changing seller attributes
-
Justification for star vs. snowflake choices and use of surrogate keys
No SQL is required.