Skip to content

Conversation

@fanzhenyu95
Copy link

Purpose of the pull request

close #17755

Brief change log

Add the following indexes to improve the pagination query performance:

For t_ds_workflow_instance table:

  • idx_project_code_start_time (project_code, start_time DESC, id DESC)
  • idx_workflow_definition_code_start_time (workflow_definition_code, start_time DESC)

For t_ds_task_instance table:

  • idx_project_code_submit_time (project_code, submit_time DESC)
  • idx_project_code_start_time (project_code, start_time DESC)

Verify this pull request

This pull request is code cleanup without any test coverage.

(or)

This pull request is already covered by existing tests, such as (please describe tests).

(or)

This change added tests and can be verified as follows:

(or)

Pull Request Notice

Pull Request Notice

If your pull request contains incompatible change, you should also add it to docs/docs/en/guide/upgrade/incompatible.md

@boring-cyborg
Copy link

boring-cyborg bot commented Nov 29, 2025

Thanks for opening this pull request! Please check out our contributing guidelines. (https://github.com/apache/dolphinscheduler/blob/dev/docs/docs/en/contribute/join/pull-request.md)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Improvement][Dao] Optimize pagination query performance by adding appropriate indexes

1 participant