SQL exercises to learn how distributed databases work.
- Host =
localhost. - Database =
problems. - User =
user. - Password =
postgres.
- Run all the SQL statements in the
setup_postgres.sqlfile to create the schema and the tables for Postgres.
- Host =
localhost. - Port =
8080. - User =
user. - Leave password empty.
- Run all the SQL statements in the
setup_trino.sqlfile to create the schema and the tables for Trino.
- To access the Minio UI, go to
http://localhost:9001/. - User:
minio. - Password:
minio123.
- To access the Trino UI, go to
http://localhost:8080/ui/. - Enter any username, no password required.
- Historical analysis without shuffling data, when all facts are preserved in an array or array of structs.
- Easy "transition" (active, inactive, churn, resurrected) analysis.
- Can only be backfilled sequentially.
- Handling PII data can be a mess since deleted/inactive users get carried forward.