Files
dzentra_bot/docs/decisions/0009-postgres-storage-foundation.md

16 lines
656 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 0009 — PostgreSQL for Storage Foundation
## Решение
Сразу строить storage foundation на PostgreSQL, а не на SQLite.
## Причины
- проект ориентирован на рост
- нужны нормальные concurrent writes и server DB
- удобно хранить JSONB payloads
- это снижает риск будущей миграции БД
## Последствия
- dev setup становится чуть сложнее
- зато storage строится сразу на целевой БД
- journal, snapshots и order flow будут развиваться без смены движка