mirror of
https://github.com/pocketbase/pocketbase.git
synced 2026-11-05 11:37:25 +01:00
refactored Record.data and Record.expand to be concurrent safe
This commit is contained in:
1 parent
39df263a03
commit
ae371e8481
38 files changed
+313
-88
No files matched your search
@@ -97,6 +97,8 @@ func (dao *Dao) expandRecords(records []*models.Record, expandPath string, fetch
|
||||
recordIds[i] = record.Id
|
||||
}
|
||||
|
||||
// @todo after the index optimizations consider allowing
|
||||
// indirect expand for multi-relation fields
|
||||
indirectRecords, err := dao.FindRecordsByExpr(
|
||||
indirectRel.Id,
|
||||
dbx.In(inflector.Columnify(matches[2]), recordIds...),
|
||||
|
||||
Reference in new issue
Block a user