mirror of
https://github.com/zitadel/zitadel.git
synced 2025-12-25 17:58:51 +00:00
perf: drop instance position index (#10626)
# Which Problems Are Solved There was an left-behind index introduced to optimize the old and removed event execution handler. The index confuses prostgres and it sometimes picks this index in favor of the projection specific index. This sometimes leads to bad query performance in the projectio handlers. # How the Problems Are Solved Drop the index # Additional Changes - none # Additional Context - Forgotten in https://github.com/zitadel/zitadel/pull/10564
This commit is contained in:
@@ -23,5 +23,5 @@ func (mig *InstancePositionIndex) Execute(ctx context.Context, _ eventstore.Even
|
||||
}
|
||||
|
||||
func (mig *InstancePositionIndex) String() string {
|
||||
return "54_instance_position_index_again"
|
||||
return "54_instance_position_index_remove_again"
|
||||
}
|
||||
|
||||
@@ -1 +1 @@
|
||||
CREATE INDEX CONCURRENTLY IF NOT EXISTS es_instance_position ON eventstore.events2 (instance_id, position);
|
||||
DROP INDEX IF EXISTS eventstore.es_instance_position;
|
||||
|
||||
Reference in New Issue
Block a user