add index on extension_index table (#17496)

This commit is contained in:
sonika-shah 2024-08-20 03:48:53 +05:30 committed by GitHub
parent d587e6f8e6
commit 424a03f49c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 0 deletions

View File

@ -298,3 +298,5 @@ update table_entity set json = JSON_SET(
JSON_EXTRACT(json, '$.dataModel.owner')
)
) where json -> '$.dataModel.owner' is not null;
ALTER TABLE entity_extension ADD INDEX extension_index(extension);

View File

@ -280,3 +280,5 @@ update automations_workflow set json = json#-'{owner}' where json #>> '{owner}'
update table_entity set json = jsonb_set(json#-'{dataModel,owner}', '{dataModel,owners}',
jsonb_build_array(json#>'{dataModel,owner}')) where json #>> '{dataModel,owner}' is not null;
CREATE INDEX IF NOT EXISTS extension_index ON entity_extension (extension);