zitadel/internal
Silvan 43404d960c fix(eventstore): order by sequence if filter by aggregate id (#8019)
# Which Problems Are Solved

Queriying events by an aggregate id can produce high loads on the
database if the aggregate id contains many events (count > 1000000).

# How the Problems Are Solved

Instead of using the postion and in_tx_order columns we use the sequence
column which guarantees correct ordering in a single aggregate and uses
more optimised indexes.

# Additional Context

Closes https://github.com/zitadel/DevOps/issues/50

Co-authored-by: Livio Spring <livio.a@gmail.com>
2024-05-28 08:50:42 +02:00
..
actions feat(actions): allow getting metadata of organizations from user grants (#7782) 2024-04-22 11:34:23 +00:00
activity fix: get orgID when missing on trigger logs (#7555) 2024-03-14 08:49:10 +00:00
admin/repository/eventsourcing fix(setup): init projections (#7194) 2024-01-25 17:28:20 +01:00
api fix: allow start and retrieve IdP intents with IdPs from other organizations (#7871) 2024-05-07 06:11:20 +00:00
auth/repository fix: allow other users to set up MFAs (#7914) 2024-05-07 05:38:26 +00:00
auth_request/repository fix(login): correctly reload policies on auth request (#7839) 2024-04-24 10:54:55 +02:00
authz chore(deps): update all go deps (#7773) 2024-04-15 09:17:36 +00:00
command fix(smtp): enable default instance config (#7925) (#7926) 2024-05-07 19:36:27 +02:00
config feat(crypto): use passwap for machine and app secrets (#7657) 2024-04-05 09:35:49 +00:00
crypto fix(db): wrap BeginTx in spans to get acquire metrics (#7689) 2024-04-09 14:03:03 +02:00
database perf: cache auth request in memory (#7824) 2024-04-23 13:49:01 +02:00
domain fix: allow other users to set up MFAs (#7914) 2024-05-07 05:38:26 +00:00
eventstore fix(eventstore): order by sequence if filter by aggregate id (#8019) 2024-05-28 08:50:42 +02:00
execution feat: add action v2 execution on requests and responses (#7637) 2024-05-04 11:55:57 +02:00
feature fix: add action v2 execution to features (#7597) 2024-04-09 20:21:21 +03:00
form refactor: rename package errors to zerrors (#7039) 2023-12-08 15:30:55 +01:00
i18n fix(middleware): init translation messages (#7778) 2024-04-16 15:46:13 +02:00
iam refactor: cleanup unused code (#7130) 2024-01-02 14:26:31 +00:00
id fix: add action v2 execution to features (#7597) 2024-04-09 20:21:21 +03:00
idp fix: improve secret generation for apple idp (#7843) 2024-04-29 07:11:57 +02:00
integration fix: allow start and retrieve IdP intents with IdPs from other organizations (#7871) 2024-05-07 06:11:20 +00:00
logstore perf: project quotas and usages (#6441) 2023-09-15 16:58:45 +02:00
migration fix(setup): init projections (#7194) 2024-01-25 17:28:20 +01:00
net perf: project quotas and usages (#6441) 2023-09-15 16:58:45 +02:00
notification fix: correct email headers (mime version and content-type) (#7886) 2024-05-02 10:36:21 +02:00
org refactor: cleanup unused code (#7130) 2024-01-02 14:26:31 +00:00
project refactor: cleanup unused code (#7130) 2024-01-02 14:26:31 +00:00
protoc merge main into next 2023-10-19 12:34:00 +02:00
qrcode docs(legal): Updated agreements and policies v2 (#3823) 2022-06-15 08:30:58 +02:00
query feat: add action v2 execution on requests and responses (#7637) 2024-05-04 11:55:57 +02:00
renderer fix(login): (re)allow HTML in custom login texts (#7575) 2024-03-15 16:29:10 +01:00
repository fix(smtp): enable default instance config (#7925) (#7926) 2024-05-07 19:36:27 +02:00
static Merge branch 'main' into next 2024-05-16 07:02:00 +02:00
statik chore: initial version of a devcontainer (#6352) 2023-08-15 10:49:05 +02:00
telemetry refactor(fmt): run gci on complete project (#7557) 2024-04-03 10:43:43 +00:00
test refactor(fmt): run gci on complete project (#7557) 2024-04-03 10:43:43 +00:00
user feat(crypto): use passwap for machine and app secrets (#7657) 2024-04-05 09:35:49 +00:00
v2 refactor(v2): init eventstore package (#7806) 2024-04-26 15:05:21 +00:00
view/repository refactor(fmt): run gci on complete project (#7557) 2024-04-03 10:43:43 +00:00
webauthn fix: allow other users to set up MFAs (#7914) 2024-05-07 05:38:26 +00:00
zerrors refactor(fmt): run gci on complete project (#7557) 2024-04-03 10:43:43 +00:00