perf(eventstore): fast push on crdb (#9186)

# Which Problems Are Solved

The performance of the initial push function can further be increased

# How the Problems Are Solved

`eventstore.push`- and `eventstore.commands_to_events`-functions were
rewritten

# Additional Changes

none

# Additional Context

same optimizations as for postgres:
https://github.com/zitadel/zitadel/pull/9092

(cherry picked from commit 690147b30e)
This commit is contained in:
Silvan
2025-01-15 15:55:48 +01:00
committed by Livio Spring
parent 3159e38842
commit 35948e9ebb
3 changed files with 128 additions and 86 deletions

View File

@@ -30,7 +30,7 @@ services:
db:
restart: 'always'
image: 'cockroachdb/cockroach:v24.2.1'
image: 'cockroachdb/cockroach:latest'
command: 'start-single-node --insecure --http-addr :9090'
healthcheck:
test: ['CMD', 'curl', '-f', 'http://localhost:9090/health?ready=1']