Project

General

Profile

Actions

Feature #44382

closed

Reduce the number of SQL queries when filtering issues by "Assignee's group" or "Author's group"

Added by Go MAEDA 21 days ago. Updated 14 days ago.

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

Description

When filtering issues by "Assignee's group" or "Author's group", IssueQuery fetches the members of each group with a separate SQL query.

With the "any" or "none" operators, all groups are iterated, so the number of queries grows with the number of groups in the Redmine instance. For example, building the filter condition on a system with 100 groups executes 100 queries.

The attached patch fetches the members of all groups with a single query, using the same subquery style as the existing User.in_group scope. The generated where clause is unchanged.


Files

Actions #1

Updated by Go MAEDA 19 days ago

  • Target version set to 7.1.0

Setting the target version to 7.1.0.

Actions #2

Updated by Go MAEDA 14 days ago

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

Committed the patch in r25035.

Actions

Also available in: Atom PDF