fix: add missing indices for service instance table

This commit is contained in:
Florian Hussonnois
2025-04-09 16:52:32 +02:00
committed by Florian Hussonnois
parent 365d82eb96
commit 504ff282ef
3 changed files with 6 additions and 0 deletions

View File

@@ -0,0 +1,2 @@
CREATE INDEX IF NOT EXISTS ix_service_instance_state ON service_instance ("state");
CREATE INDEX IF NOT EXISTS ix_service_instance_type_created_at_updated_at ON service_instance ("service_type", "created_at", "updated_at");

View File

@@ -0,0 +1,2 @@
CREATE INDEX ix_service_instance_state ON service_instance (`state`);
CREATE INDEX ix_service_instance_type_created_at_updated_at ON service_instance (`service_type`, `created_at`, `updated_at`);

View File

@@ -0,0 +1,2 @@
CREATE INDEX IF NOT EXISTS ix_service_instance_state ON service_instance (state);
CREATE INDEX IF NOT EXISTS ix_service_instance_type_created_at_updated_at ON service_instance (service_type, created_at, updated_at);