mirror of
https://github.com/andwati/zitadel.git
synced 2026-10-20 06:24:25 +00:00
fix(eventstore): prevent allocation of filtered events (#6749)
* fix(eventstore): prevent allocation of filtered events Directly reduce each event obtained from a sql.Rows scan, so that we do not have to allocate all events in a slice. * reinstate the mutex as RWMutex * scan data directly * add todos * fix(writemodels): add reduce of parent * test: remove comment * update comments --------- Co-authored-by: adlerhurst <[email protected]>
This commit is contained in:
co-authored by
adlerhurst
parent
459761d99a
commit
ab79855cf0
@@ -60,7 +60,7 @@ func (wm *InstanceWriteModel) Reduce() error {
|
||||
wm.DefaultLanguage = e.Language
|
||||
}
|
||||
}
|
||||
return nil
|
||||
return wm.WriteModel.Reduce()
|
||||
}
|
||||
|
||||
func (wm *InstanceWriteModel) Query() *eventstore.SearchQueryBuilder {
|
||||
|
||||
Reference in New Issue
Block a user