Project

General

Profile

Actions

Patch #39993

closed

Optimize loading of journals, relations, and allowed_statuses in IssuesController#show for API requests

Added by Go MAEDA 4 months ago. Updated 4 months ago.

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

0%

Estimated time:

Description

The attached patch introduces an optimization in the IssuesController to conditionally load @journals, @relations, and @allowed_statuses based on the context of the request (API vs. web).

@journals, @relations, and @allowed_statuses are now loaded only if the request is not an API request or if they are explicitly included in the API response. This change prevents unnecessary data loading, thereby reducing server load and improving response times for API requests.


Files

Actions #1

Updated by Go MAEDA 4 months ago

  • Target version set to 6.0.0

Setting the target version to 6.0.0.

Actions #2

Updated by Go MAEDA 4 months ago

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

Committed the patch in r22582.

Actions

Also available in: Atom PDF