Project

General

Profile

Actions

Defect #37268

closed

Performance problem with Redmine 4.2.7 and 5.0.2

Added by Alexander Meindl over 2 years ago. Updated about 2 years ago.

Status:
Closed
Priority:
Normal
Category:
Issues list
Target version:
Start date:
Due date:
% Done:

0%

Estimated time:
Resolution:
Fixed
Affected version:

Description

With r21646 especially this change: https://www.redmine.org/projects/redmine/repository/revisions/21646/diff/trunk/app/models/issue_custom_field.rb

"((#{sql}) AND (#{tracker_condition}) AND (#{project_condition}))" 

to

"((#{sql}) AND (#{tracker_condition}) AND (#{project_condition}) AND (#{Issue.visible_condition(user)}))" 

we got massive performance problems on issue list.

Some information to the system environment:

  • Redmine 5.0.2 (for this issue I selected 5.0.1, because there is no 5.0.2 to select)
  • Ruby 3.0.2
  • PostgreSQL 14
  • 150.000 issues
  • 500 projects
  • 40 custom fields for issues

Files

custom_field_visibility_fix.patch (5.69 KB) custom_field_visibility_fix.patch Alexander Meindl, 2022-06-22 07:55
custom_field_visibility_fix_v2.patch (960 Bytes) custom_field_visibility_fix_v2.patch Alexander Meindl, 2022-06-22 07:56
custom_field_visibility_fix_v3.patch (954 Bytes) custom_field_visibility_fix_v3.patch Fixed name of subquery alias Alexander Meindl, 2022-06-22 08:01
custom_field_visibility_fix_v4.patch (921 Bytes) custom_field_visibility_fix_v4.patch Alexander Meindl, 2022-06-22 18:52
sql_with_visible_condition.sql (3.2 KB) sql_with_visible_condition.sql Marius BĂLTEANU, 2022-06-27 20:50
explain_with_visible_condition.csv (20.5 KB) explain_with_visible_condition.csv Marius BĂLTEANU, 2022-06-27 20:50
sql_without_visible_condition.sql (2.89 KB) sql_without_visible_condition.sql Marius BĂLTEANU, 2022-06-27 20:52
explain_without_visible_condition.csv (16.9 KB) explain_without_visible_condition.csv Marius BĂLTEANU, 2022-06-27 20:52
perfomance_fixtures.rb (423 Bytes) perfomance_fixtures.rb Marius BĂLTEANU, 2022-06-27 21:13
37268.patch (1.24 KB) 37268.patch Marius BĂLTEANU, 2022-09-13 23:08

Related issues

Has duplicate Redmine - Defect #37539: Issue index filtering with custom field became unusable with Redmine 4.2.7Closed

Actions
Has duplicate Redmine - Patch #37565: Performance problem when filtering issues by custom-field valueClosed

Actions
Actions

Also available in: Atom PDF