Project

General

Profile

Actions

Patch #43934

closed

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

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

Added by Go MAEDA 8 months ago. Updated 8 months 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

Updated by Go MAEDA 8 months ago Actions #1

  • Target version changed from Candidate for next major release to 7.0.0

Setting the target version to 7.0.0.

Updated by Go MAEDA 8 months ago Actions #2

  • Subject changed from Optimize `Issue#visible_journals_with_index` preload behavior to Optimize `Issue#visible_journals_with_index` preload to skip user email_address when Gravatar is disabled
  • Status changed from New to Closed
  • Assignee set to Go MAEDA

Committed the patch in r24577.

Actions

Also available in: PDF Atom