AzurePipelines icon indicating copy to clipboard operation
AzurePipelines copied to clipboard

Improve get PRs details performance

Open matmarchand opened this issue 3 years ago • 3 comments

Azure DevOps Extensions

Generate Release Notes (Node Cross Platform)

Is your feature request related to a problem? Please describe.

Generating release notes is really slow in our case because "Getting associated PRs" will fetch about 100 000 PRs.

Describe the solution you'd like

According to this comment from MSFT, the pull request list API will sort completed PRs by completion date.

With that in mind, in getPullRequest we could stop the PR iteration when we reached the oldest build/release date that we are comparing against.

Describe alternatives you've considered

No response

Additional context

No response

matmarchand avatar Dec 14 '22 16:12 matmarchand

Interesting idea, note sure when I might have time to experiment with this technique, but it is on the backlog

rfennell avatar Dec 19 '22 19:12 rfennell

The fix #1588 has just been released, this provides some new option that could help PR discovery performance

rfennell avatar Jan 31 '24 17:01 rfennell

Thanks! It solved a lot of production issues

ric79 avatar Feb 02 '24 08:02 ric79