Choosing a database
Use this Architecture Decision Record (ADR) template to explain which queries your database needs to handle and what trade-offs the team accepted.
Example entryUse PostgreSQL for sales reporting
We tried PostgreSQL and MongoDB with our order data. Our reports regularly join refunds, payments and line items. We can do that in one SQL query. For now, this matters more than a flexible document schema.
Follow-up
We added warranty claims to the report. The joins still suit the way we work. We attached the original query so anyone revisiting the decision can rerun the comparison.
Questions to copy
- What data will we store, and which questions do we need it to answer?
- Which databases did we test with our own data?
- What decided it, and which limitation are we accepting?
- What change in load or usage would justify another comparison?