[Bots] Fix Slow Query in QueryNameAvailablity (#2781)

This commit is contained in:
Aeadoin
2023-01-22 18:26:57 -05:00
committed by GitHub
parent 7e35d5aa79
commit 293f79268d
4 changed files with 15 additions and 3 deletions
@@ -35,6 +35,7 @@
9034|2022_12_02_bot_spell_settings.sql|SHOW COLUMNS FROM `bot_data` LIKE 'enforce_spell_settings'|empty|
9035|2022_12_04_bot_archery.sql|SHOW COLUMNS FROM `bot_data` LIKE 'archery_setting'|empty|
9036|2023_01_19_drop_bot_views.sql|SHOW TABLES LIKE 'vw_groups'|not_empty|
9037|2023_01_22_add_name_index.sql||show index from bot_data WHERE key_name = 'name`|empty|
# Upgrade conditions:
# This won't be needed after this system is implemented, but it is used database that are not
@@ -0,0 +1 @@
create index `name` on bot_data(`name`);