speedup records cascade delete

This commit is contained in:
Gani Georgiev
2024-12-12 22:55:55 +02:00
parent efe4ef500b
commit 8e63e81561
5 changed files with 206 additions and 61 deletions

View File

@@ -6,6 +6,8 @@
- Added `tests.NewTestAppWithConfig(config)` helper if you need more control over the test configurations like `IsDev`, the number of allowed connections, etc.
- Added `app.FindCachedCollectionReferences(collection, excludeIds)` to speedup records cascade delete almost twice for projects with many collections.
- ⚠️ Removed the "dry submit" when executing the collections Create API rule
(you can find more details why this change was introduced and how it could affect your app in https://github.com/pocketbase/pocketbase/discussions/6073).
For most users it should be non-breaking change, BUT if you have Create API rules that uses self-references or view counters you may have to adjust them manually.