enhancementhelp wantedoptimization
仓库指标
- Star
- (406 star)
- PR 合并指标
- (30 天内没有已合并 PR)
描述
Querying for things like:
- latest (as in, biggest TIMESTAMP) event for a certain scope (say, reference=R1)
- sum/avg/max/min for a certain scope (say, reference=R1)
is quite expensive as it involved a lot of scanning (as can be seen in https://github.com/eventsourcing/es4j/blob/master/eventsourcing-queries/src/main/java/com/eventsourcing/queries/IsLatestEntity.java and https://github.com/eventsourcing/es4j/blob/master/eventsourcing-queries/src/main/java/com/eventsourcing/queries/LatestAssociatedEntryQuery.java)
Proposed solution: designate and formalize an aggregate indexing system.