Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion docs/production-database.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ GRANT USAGE ON SCHEMA public TO crowdpay_app;
SQL
```


The migration role must be used for `npm run migrate`; it needs to create/alter tables and indexes. After the first migration, grant the runtime role access to the objects it needs:

```bash
Expand Down Expand Up @@ -150,4 +151,4 @@ Performance guidance:
- Start with PostgreSQL defaults on a managed service; adjust `shared_buffers`, `work_mem`, and `maintenance_work_mem` only after observing workload and with total concurrent memory in mind.
- Review slow queries with `pg_stat_statements`/slow-query logs and use `EXPLAIN (ANALYZE, BUFFERS)` on a safe environment before adding indexes. Existing migrations provide indexes for common campaign, contribution, search, and analytics paths.
- Keep PostgreSQL minor releases current and rehearse major-version upgrades using a restored copy.


Loading