unigof opened a new issue, #17506:
URL: https://github.com/apache/dolphinscheduler/issues/17506

   ### Search before asking
   
   - [x] I had searched in the 
[issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and 
found no similar feature requirement.
   
   
   ### Description
   
   Table `t_ds_schedules` doesn't have index on column 
`workflow_definition_code`, but there are some SQL query by column 
`workflow_definition_code`, e.g.  `queryByWorkflowDefinitionCode` in class 
`SchedulerServiceImpl`.
   
   So need to add index to reduce time cost when access db. In our env, it will 
reduce time cost from 2ms to 0.2ms.
   
   ### Are you willing to submit a PR?
   
   - [x] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [x] I agree to follow this project's [Code of 
Conduct](https://www.apache.org/foundation/policies/conduct)
   


-- 
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]

Reply via email to