Patch #37528

Don't load changesets when IssuesController#show processes API requests without "include=changesets"

Added by Go MAEDA 19 days ago. Updated 16 days ago.

Status:ClosedStart date:
Priority:NormalDue date:
Assignee:Go MAEDA% Done:

0%

Category:Performance
Target version:5.1.0

Description

Currently, changesets are always being loaded in IssuesController when API requests for IssuesController#show are made. However, loading Changesets is not necessary unless "include=changesets" is specified in the API request parameters.

The attached patch can improve the performance of "GET /issues/:id.(json|xml)" by loading changesets only when they are necessary.

skip-loading-changesets.patch Magnifier (1.23 KB) Go MAEDA, 2022-07-29 03:19

Associated revisions

Revision 21746
Added by Go MAEDA 16 days ago

Don't load changesets when IssuesController#show processes API requests without "include=changesets" (#37528).

Patch by Go MAEDA.

History

#1 Updated by Go MAEDA 18 days ago

  • Target version set to 5.1.0

Setting the target version to 5.1.0.

#2 Updated by Go MAEDA 16 days ago

  • Status changed from New to Closed
  • Assignee set to Go MAEDA

Committed the patch.

Also available in: Atom PDF