Commit 9af19f8
chore: dual-write all entities to Postgres + ClickHouse
Add a storage block enabling ClickHouse alongside Postgres, both default:true so
every entity syncs to both backends (Postgres serves the GraphQL API, ClickHouse
the columnar analytics store). envio auto-provisions a ClickHouse container in
dev; for an external ClickHouse set ENVIO_CLICKHOUSE_HOST / _DATABASE /
_USERNAME / _PASSWORD in .env. Verified locally: all 26 entity tables mirrored;
PegKeeper data identical in both (3 keepers / 382 actions); a ClickHouse
aggregation confirms keepers provide above peg (avg 1.0024) and withdraw below
(avg 0.9998).
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent 8e1fafe commit 9af19f8
1 file changed
Lines changed: 15 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
4 | 19 | | |
5 | 20 | | |
6 | 21 | | |
| |||
0 commit comments