jieguangzhou commented on code in PR #13194: URL: https://github.com/apache/dolphinscheduler/pull/13194#discussion_r1049344130
########## dolphinscheduler-dao/src/main/resources/sql/dolphinscheduler_mysql.sql: ########## @@ -894,7 +898,8 @@ CREATE TABLE `t_ds_task_instance` ( `test_flag` tinyint(4) DEFAULT null COMMENT 'test flagļ¼0 normal, 1 test run', PRIMARY KEY (`id`), KEY `process_instance_id` (`process_instance_id`) USING BTREE, - KEY `idx_code_version` (`task_code`, `task_definition_version`) USING BTREE + KEY `idx_code_version` (`task_code`, `task_definition_version`) USING BTREE, + KEY `cache_key` (`cache_key`) USING BTREE, Review Comment: Sometimes there are one-to-many relationships. And I have set 'limit 1' in SQL query . -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
