- Replaced multiple SQL queries with a single query utilizing Common Table Expressions (CTEs) for improved performance. - Streamlined the exclusion of existing proposals and active directors directly within the SQL query. - Enhanced logging for SQL queries and results, providing better traceability during proposal generation. - Simplified the process of calculating average knowledge for character proposals, ensuring more efficient data handling.
14 lines
752 B
SQL
14 lines
752 B
SQL
-- Rollback: Remove indexes for director proposals and character queries
|
|
-- Created: 2026-01-12
|
|
|
|
DROP INDEX IF EXISTS falukant_data.idx_character_region_user_created;
|
|
DROP INDEX IF EXISTS falukant_data.idx_character_region_user;
|
|
DROP INDEX IF EXISTS falukant_data.idx_character_user_id;
|
|
DROP INDEX IF EXISTS falukant_data.idx_director_proposal_employer_character;
|
|
DROP INDEX IF EXISTS falukant_data.idx_director_character_id;
|
|
DROP INDEX IF EXISTS falukant_data.idx_director_employer_user_id;
|
|
DROP INDEX IF EXISTS falukant_data.idx_knowledge_character_id;
|
|
DROP INDEX IF EXISTS falukant_data.idx_relationship_character1_id;
|
|
DROP INDEX IF EXISTS falukant_data.idx_child_relation_father_id;
|
|
DROP INDEX IF EXISTS falukant_data.idx_child_relation_mother_id;
|