1
0
mirror of https://github.com/pocketbase/pocketbase.git synced 2025-11-24 23:24:00 +02:00

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

@@ -1417,7 +1417,7 @@ func onRecordDeleteExecute(e *RecordEvent) error {
//
// note: the select is outside of the transaction to minimize
// SQLITE_BUSY errors when mixing read&write in a single transaction
refs, err := e.App.FindCollectionReferences(e.Record.Collection())
refs, err := e.App.FindCachedCollectionReferences(e.Record.Collection())
if err != nil {
return err
}