zitadel/cmd
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
..
admin chore: test server for direct resource access 2023-04-24 20:40:31 +03:00
build fix: allow version to be overwritten by build again (#4656) 2022-11-07 09:50:44 +00:00
encryption fix(setup): init projections (#7194) 2024-01-25 17:28:20 +01:00
hooks feat: support whole config as env (#6336) 2024-02-16 16:04:42 +00:00
initialise feat(cmd): mirror (#7004) 2024-05-30 09:35:30 +00:00
key fix(db): always use begin tx (#7142) 2024-01-04 16:12:20 +00:00
mirror fix: read correct defaults (#8090) 2024-06-10 11:46:28 +02:00
ready feat(api): feature flags (#7356) 2024-02-28 10:55:54 +02:00
setup feat(eventstore): add search table (#8191) 2024-07-03 15:00:56 +00:00
start feat(eventstore): add search table (#8191) 2024-07-03 15:00:56 +00:00
tls fix: enable env vars in setup steps (and deprecate admin subcommand) (#3871) 2022-06-27 10:32:34 +00:00
defaults.yaml feat(crypto): support md5 plain for imported password hashes (#8189) 2024-06-25 11:10:49 +03:00
zitadel.go feat(cmd): mirror (#7004) 2024-05-30 09:35:30 +00:00