fix(eventstore): improve pagination of handler filter (#6968)

* fix(setup): add filter_offset to `projections.current_states`

* fix(eventstore): allow offset in query

* fix(handler): offset for already processed events
This commit is contained in:
Silvan
2023-12-01 13:25:41 +01:00
committed by GitHub
parent e57076430b
commit e3d1ca4d58
20 changed files with 512 additions and 174 deletions

View File

@@ -7,6 +7,7 @@ INSERT INTO projections.current_states (
, event_date
, "position"
, last_updated
, filter_offset
) VALUES (
$1
, $2
@@ -16,6 +17,7 @@ INSERT INTO projections.current_states (
, $6
, $7
, now()
, $8
) ON CONFLICT (
projection_name
, instance_id
@@ -26,4 +28,5 @@ INSERT INTO projections.current_states (
, event_date = $6
, "position" = $7
, last_updated = statement_timestamp()
, filter_offset = $8
;