Project

General

Profile

Actions

Patch #37528

closed

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

Added by Go MAEDA over 1 year ago. Updated over 1 year ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Performance
Target version:
Start date:
Due date:
% Done:

0%

Estimated time:

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.


Files

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

Also available in: Atom PDF