Skip to content

Commit 9d88bf4

Browse files
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

7 files changed

+1879
-979
lines changed

persistent-postgresql/ChangeLog.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# Changelog for persistent-postgresql
22

3+
# 2.14.1.0
4+
5+
* [#1612](https://github.com/yesodweb/persistent/pull/1612)
6+
* Speed up migrations by avoiding N+1 queries.
7+
You can now migrate a large set of entities much faster, by using the new `migrateEntitiesStructured` function.
8+
39
# 2.14.0.1
410

511
* [#1610](https://github.com/yesodweb/persistent/pull/1610)

0 commit comments

Comments
 (0)