zitadel/internal/eventstore/v3
Silvan b522588d98
fix(eventstore): precise decimal (#8527)
# Which Problems Are Solved

Float64 which was used for the event.Position field is [not precise in
go and gets rounded](https://github.com/golang/go/issues/47300). This
can lead to unprecies position tracking of events and therefore
projections especially on cockcoachdb as the position used there is a
big number.

example of a unprecies position:
exact: 1725257931223002628
float64: 1725257931223002624.000000

# How the Problems Are Solved

The float64 was replaced by
[github.com/jackc/pgx-shopspring-decimal](https://github.com/jackc/pgx-shopspring-decimal).

# Additional Changes

Correct behaviour of makefile for load tests.
Rename `latestSequence`-queries to `latestPosition`
2024-09-06 12:19:19 +03:00
..
event_test.go feat(eventstore): increase parallel write capabilities (#5940) 2023-10-19 12:19:10 +02:00
event.go fix(eventstore): precise decimal (#8527) 2024-09-06 12:19:19 +03:00
eventstore.go fix(eventstore): differentiate unique constraint error (#6832) 2023-10-27 14:10:01 +02:00
field_test.go feat(eventstore): add search table (#8191) 2024-07-03 15:00:56 +00:00
field.go fix(fields): use read commit isolation level in trigger (#8410) 2024-08-09 09:24:28 +00:00
mock_test.go feat(eventstore): add search table (#8191) 2024-07-03 15:00:56 +00:00
push_test.go feat(eventstore): increase parallel write capabilities (#5940) 2023-10-19 12:19:10 +02:00
push.go refactor(database): exchange connection pool (#8325) 2024-07-17 15:16:02 +00:00
push.sql feat(eventstore): increase parallel write capabilities (#5940) 2023-10-19 12:19:10 +02:00
sequence_test.go fix(eventstore): increase performance on push (#7125) 2023-12-31 15:30:25 +01:00
sequence.go fix(eventstore): increase performance on push (#7125) 2023-12-31 15:30:25 +01:00
sequences_query.sql fix(eventstore): increase performance on push (#7125) 2023-12-31 15:30:25 +01:00
type.go feat(eventstore): increase parallel write capabilities (#5940) 2023-10-19 12:19:10 +02:00
unique_constraints_add.sql feat(eventstore): increase parallel write capabilities (#5940) 2023-10-19 12:19:10 +02:00
unique_constraints_delete_placeholders.sql fix(postgres <=15): delete unique constraints (#6971) 2023-11-24 07:23:23 +01:00
unique_constraints_delete.sql feat(eventstore): increase parallel write capabilities (#5940) 2023-10-19 12:19:10 +02:00
unique_constraints.go chore: use pgx v5 (#7577) 2024-03-27 15:48:22 +02:00