zitadel/internal/eventstore/handler/v2
Silvan 1d84635836
feat(eventstore): add search table (#8191)
# Which Problems Are Solved

To improve performance a new table and method is implemented on
eventstore. The goal of this table is to index searchable fields on
command side to use it on command and query side.

The table allows to store one primitive value (numeric, text) per row.

The eventstore framework is extended by the `Search`-method which allows
to search for objects.
The `Command`-interface is extended by the `SearchOperations()`-method
which does manipulate the the `search`-table.

# How the Problems Are Solved

This PR adds the capability of improving performance for command and
query side by using the `Search`-method of the eventstore instead of
using one of the `Filter`-methods.

# Open Tasks

- [x] Add feature flag
- [x] Unit tests
- [ ] ~~Benchmarks if needed~~
- [x] Ensure no behavior change
- [x] Add setup step to fill table with current data
- [x] Add projection which ensures data added between setup and start of
the new version are also added to the table

# Additional Changes

The `Search`-method is currently used by `ProjectGrant`-command side.

# Additional Context

- Closes https://github.com/zitadel/zitadel/issues/8094
2024-07-03 15:00:56 +00:00
..
failed_event_get_count.sql feat(eventstore): increase parallel write capabilities (#5940) 2023-10-19 12:19:10 +02:00
failed_event_set.sql feat(eventstore): increase parallel write capabilities (#5940) 2023-10-19 12:19:10 +02:00
failed_event.go refactor: rename package errors to zerrors (#7039) 2023-12-08 15:30:55 +01:00
field_handler.go feat(eventstore): add search table (#8191) 2024-07-03 15:00:56 +00:00
handler.go feat(eventstore): add search table (#8191) 2024-07-03 15:00:56 +00:00
init.go chore: use pgx v5 (#7577) 2024-03-27 15:48:22 +02:00
log.go feat(eventstore): increase parallel write capabilities (#5940) 2023-10-19 12:19:10 +02:00
mock_test.go feat(eventstore): increase parallel write capabilities (#5940) 2023-10-19 12:19:10 +02:00
reduce.go feat(eventstore): increase parallel write capabilities (#5940) 2023-10-19 12:19:10 +02:00
state_get_await.sql fix(eventstore): improve pagination of handler filter (#6968) 2023-12-01 12:25:41 +00:00
state_get.sql fix(eventstore): improve pagination of handler filter (#6968) 2023-12-01 12:25:41 +00:00
state_lock.sql feat(eventstore): increase parallel write capabilities (#5940) 2023-10-19 12:19:10 +02:00
state_set.sql fix(eventstore): improve pagination of handler filter (#6968) 2023-12-01 12:25:41 +00:00
state_test.go chore: use pgx v5 (#7577) 2024-03-27 15:48:22 +02:00
state.go fix: handle context correctly in processEvents (#7320) 2024-01-31 11:25:28 +01:00
statement_test.go feat: option to disallow public org registration (#6917) 2023-11-22 09:29:38 +00:00
statement.go fix(login): improve auth handlers (#7969) 2024-05-22 15:26:02 +00:00