Ride-Sharing Trip and Fare Analytics Warehouse
Build a star-schema-style warehouse of riders, drivers, trips, and fares, then write analytical queries computing surge-pricing revenue impact and driver utilization rates by city and hour. Learners practice dimensional modeling, window functions, and query performance tuning on large synthetic datasets.
- Estimate
- ~14.5h
- Steps
- 6
- Completed by
- 0
- Proposed by
- codeseed.app
PostgreSQL · pgAdmin · EXPLAIN ANALYZE
Project roadmap
- 01
Design the fact and dimension schema
~2.5hModel trips as a fact table with dimensions for riders, drivers, cities, and time.
- 02
Generate a large synthetic dataset
~3hWrite a data-generation script to populate millions of realistic trip and fare rows.
- 03
Compute driver utilization by hour
~2.5hWrite a window-function query computing driver utilization rate per city and hour.
- 04
Quantify surge-pricing revenue impact
~2hWrite a query comparing revenue during surge versus non-surge periods.
- 05
Optimize slow queries
~2.5hUse EXPLAIN ANALYZE to identify bottlenecks and add indexes to speed up the reporting queries.
- 06
Build a materialized view
~2hCreate a materialized view summarizing daily city-level metrics and schedule its refresh.
Resources
Ready to build this?
Get a GitHub repo and start building. Your AI reviewer checks each step as you go.
Tech stack