zitadel/internal/repository/project
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
..
aggregate.go chore(v2): move to new org (#3499) 2022-04-26 23:01:45 +00:00
api_config.go feat(crypto): use passwap for machine and app secrets (#7657) 2024-04-05 09:35:49 +00:00
application.go refactor: rename package errors to zerrors (#7039) 2023-12-08 15:30:55 +01:00
eventstore.go feat(crypto): use passwap for machine and app secrets (#7657) 2024-04-05 09:35:49 +00:00
grant_member.go refactor: rename package errors to zerrors (#7039) 2023-12-08 15:30:55 +01:00
grant.go feat(eventstore): add search table (#8191) 2024-07-03 15:00:56 +00:00
key.go refactor: rename package errors to zerrors (#7039) 2023-12-08 15:30:55 +01:00
member.go feat(eventstore): increase parallel write capabilities (#5940) 2023-10-19 12:19:10 +02:00
oidc_config.go feat(crypto): use passwap for machine and app secrets (#7657) 2024-04-05 09:35:49 +00:00
project.go feat(eventstore): add search table (#8191) 2024-07-03 15:00:56 +00:00
role.go feat(eventstore): add search table (#8191) 2024-07-03 15:00:56 +00:00
saml_config.go refactor: rename package errors to zerrors (#7039) 2023-12-08 15:30:55 +01:00