mirror of
https://github.com/zitadel/zitadel.git
synced 2025-08-12 17:47:32 +00:00
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
(cherry picked from commit e3d1ca4d58
)
This commit is contained in:
@@ -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
|
||||
;
|
Reference in New Issue
Block a user