zitadel/internal/eventstore
Tim Möhlmann 2025434b1e 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 <silvan.reusser@gmail.com>
2023-10-20 09:17:56 +02:00
..
handler feat(eventstore): increase parallel write capabilities (#5940) 2023-10-19 12:19:10 +02:00
repository fix(eventstore): prevent allocation of filtered events (#6749) 2023-10-20 09:17:56 +02:00
v1/models feat(eventstore): increase parallel write capabilities (#5940) 2023-10-19 12:19:10 +02:00
v3 feat(eventstore): increase parallel write capabilities (#5940) 2023-10-19 12:19:10 +02:00
aggregate.go feat(eventstore): increase parallel write capabilities (#5940) 2023-10-19 12:19:10 +02:00
asset.go fix(eventstore): sub queries (#1805) 2021-07-06 13:55:57 +02:00
bench_payload.txt feat(eventstore): increase parallel write capabilities (#5940) 2023-10-19 12:19:10 +02:00
config.go feat(eventstore): increase parallel write capabilities (#5940) 2023-10-19 12:19:10 +02:00
event_base.go feat(eventstore): increase parallel write capabilities (#5940) 2023-10-19 12:19:10 +02:00
event.go feat(eventstore): increase parallel write capabilities (#5940) 2023-10-19 12:19:10 +02:00
eventstore_bench_test.go feat(eventstore): increase parallel write capabilities (#5940) 2023-10-19 12:19:10 +02:00
eventstore_pusher_test.go feat(eventstore): increase parallel write capabilities (#5940) 2023-10-19 12:19:10 +02:00
eventstore_querier_test.go feat(eventstore): increase parallel write capabilities (#5940) 2023-10-19 12:19:10 +02:00
eventstore_test.go fix(eventstore): prevent allocation of filtered events (#6749) 2023-10-20 09:17:56 +02:00
eventstore.go fix(eventstore): prevent allocation of filtered events (#6749) 2023-10-20 09:17:56 +02:00
example_test.go feat(eventstore): increase parallel write capabilities (#5940) 2023-10-19 12:19:10 +02:00
local_crdb_test.go feat(eventstore): increase parallel write capabilities (#5940) 2023-10-19 12:19:10 +02:00
read_model.go feat(eventstore): increase parallel write capabilities (#5940) 2023-10-19 12:19:10 +02:00
search_query_test.go feat(eventstore): increase parallel write capabilities (#5940) 2023-10-19 12:19:10 +02:00
search_query.go fix(eventstore): prevent allocation of filtered events (#6749) 2023-10-20 09:17:56 +02:00
subscription.go feat(eventstore): increase parallel write capabilities (#5940) 2023-10-19 12:19:10 +02:00
unique_constraint.go feat(eventstore): increase parallel write capabilities (#5940) 2023-10-19 12:19:10 +02:00
version_test.go feat(eventstore): increase parallel write capabilities (#5940) 2023-10-19 12:19:10 +02:00
version.go feat(eventstore): increase parallel write capabilities (#5940) 2023-10-19 12:19:10 +02:00
write_model.go feat(eventstore): increase parallel write capabilities (#5940) 2023-10-19 12:19:10 +02:00