Project

General

Profile

Actions

Patch #40854

closed

Optimize Issue#blocked? and Issue#duplicates

Added by Go MAEDA almost 2 years ago. Updated almost 2 years ago.

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

Description

This patch optimizes the Issue#blocked? and Issue#duplicates methods with the following changes:

  • Adds an early return if relations is empty, avoiding unnecessary database queries.
  • Uses where` to filter relations directly in the database, improving query efficiency.

Files

Actions

Also available in: Atom PDF