Project

General

Profile

Actions

Patch #43934

closed

Optimize `Issue#visible_journals_with_index` preload to skip user email_address when Gravatar is disabled

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

Status:
Closed
Priority:
Normal
Assignee:
Category:
Performance
Target version:

Description

This patch adjusts Issue#visible_journals_with_index to preload journal associations more efficiently.
This reduces some queries when processing IssuesController#show.

  • Always preload updated_by to avoid extra queries when rendering edited journals.
  • Only preload user email addresses when Gravatar is enabled.

Files

Actions

Also available in: Atom PDF