mirror of
https://github.com/pocketbase/pocketbase.git
synced 2026-11-06 03:57:26 +01:00
speedup records cascade delete
This commit is contained in:
1 parent
efe4ef500b
commit
8e63e81561
5 files changed
+206
-61
No files matched your search
@@ -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
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user