Commit 9d88bf4
Avoid N+1 in postgresql migrations (#1612)
* wip
* Handle existence + test
* Move diffing logic over
* Replace the impl
* expand test
* what da hell
* tracing
* hell yeah
* remove tracing
* format
* Move last two migration fns into Internal.Migration
* docs + re-export new migrateEntitiesStructured
* bump version + add changelog
* format
* Handle duplicate FK constraints
* Add test for duplicate FK constraints
* Switch to pg_catalog for FK constraints
* format
* Restyled by cabal-fmt
---------
Co-authored-by: Restyled.io <[email protected]>1 parent 5413588 commit 9d88bf4
File tree
7 files changed
+1879
-979
lines changed- persistent-postgresql
- Database/Persist/Postgresql
- Internal
- sql
- test
7 files changed
+1879
-979
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
3 | 9 | | |
4 | 10 | | |
5 | 11 | | |
| |||
0 commit comments