fix: remove index es_instance_position (#9862)

# Which Problems Are Solved

#9837 added a new index `es_instance_position` on the events table with
the idea to improve performance for some projections. Unfortunately, it
makes it worse for almost all projections and would only improve the
situation for the events handler of the actions V2 subscriptions.

# How the Problems Are Solved

Remove the index again.

# Additional Changes

None

# Additional Context

relates to #9837
relates to #9863

(cherry picked from commit d71795c433)
This commit is contained in:
Livio Spring
2025-05-08 08:35:34 +02:00
parent c877add363
commit b5d14bafce
2 changed files with 2 additions and 2 deletions

View File

@@ -23,5 +23,5 @@ func (mig *InstancePositionIndex) Execute(ctx context.Context, _ eventstore.Even
} }
func (mig *InstancePositionIndex) String() string { func (mig *InstancePositionIndex) String() string {
return "54_instance_position_index" return "54_instance_position_index_remove"
} }

View File

@@ -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;