mirror of
https://github.com/pocketbase/pocketbase.git
synced 2026-10-28 07:50:25 +01:00
hinted indexed map size
This commit is contained in:
1 parent
15c05b9679
commit
3449084e54
1 file changed
+1
-1
+1
-1
@@ -174,7 +174,7 @@ func (m *Record) MergeExpand(expand map[string]any) {
|
||||
continue
|
||||
}
|
||||
|
||||
oldIndexed := map[string]*Record{}
|
||||
oldIndexed := make(map[string]*Record, len(oldSlice))
|
||||
for _, oldRecord := range oldSlice {
|
||||
oldIndexed[oldRecord.Id] = oldRecord
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user