zitadel/internal/eventstore
Livio Spring 931a6c7cce
perf(authZ): improve oidc session check (#8091)
# Which Problems Are Solved

Access token checks make sure that there have not been any termination
events (user locked, deactivated, signed out, ...) in the meantime. This
events were filtered based on the creation date of the last session
event, which might cause latency issues in the database.

# How the Problems Are Solved

- Changed the query to use `position` instead of `created_at`.
- removed `AwaitOpenTransactions`

# Additional Changes

Added the `position` field to the `ReadModel`.

# Additional Context

- relates to #8088
- part of #7639
- backport to 2.53.x
2024-06-12 09:11:36 +00:00
..
handler feat(cmd): mirror (#7004) 2024-05-30 09:35:30 +00:00
repository fix(eventstore): order by sequence if filter by aggregate id (#8019) 2024-05-28 06:49:30 +00:00
v1/models refactor: rename package errors to zerrors (#7039) 2023-12-08 15:30:55 +01:00
v3 fix(crdb): obtain latest sequences when the tx is retried (#7795) 2024-04-18 13:07:05 +00:00
aggregate.go feat: restrict languages (#6931) 2023-12-05 11:12:01 +00: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 fix(eventstore): retry push on primary key sequence collision (#7420) 2024-02-23 08:29:10 +00:00
event_base.go feat(eventstore): increase parallel write capabilities (#5940) 2023-10-19 12:19:10 +02:00
event.go refactor: rename package errors to zerrors (#7039) 2023-12-08 15:30:55 +01:00
eventstore_bench_test.go feat(eventstore): increase parallel write capabilities (#5940) 2023-10-19 12:19:10 +02:00
eventstore_pusher_test.go fix(crdb): obtain latest sequences when the tx is retried (#7795) 2024-04-18 13:07:05 +00:00
eventstore_querier_test.go feat(eventstore): increase parallel write capabilities (#5940) 2023-10-19 12:19:10 +02:00
eventstore_test.go chore: use pgx v5 (#7577) 2024-03-27 15:48:22 +02:00
eventstore.go chore: use pgx v5 (#7577) 2024-03-27 15:48:22 +02:00
example_test.go fix(setup): init projections (#7194) 2024-01-25 17:28:20 +01:00
local_crdb_test.go fix(init): add setting to enable durable locks on crdb (#7982) 2024-05-27 09:03:34 +00:00
read_model.go perf(authZ): improve oidc session check (#8091) 2024-06-12 09:11:36 +00:00
search_query_test.go fix(eventstore): improve pagination of handler filter (#6968) 2023-12-01 12:25:41 +00:00
search_query.go fix(setup): init projections (#7194) 2024-01-25 17:28:20 +01: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 refactor: rename package errors to zerrors (#7039) 2023-12-08 15:30:55 +01:00
write_model.go feat(eventstore): increase parallel write capabilities (#5940) 2023-10-19 12:19:10 +02:00