プロジェクト

全般

プロフィール

Vote #77862

完了

Add an index on issues.parent_id

Admin Redmine さんが約4年前に追加. 約4年前に更新.

ステータス:
Closed
優先度:
通常
担当者:
-
カテゴリ:
Performance_53
対象バージョン:
開始日:
2022/05/09
期日:
進捗率:

0%

予定工数:
category_id:
53
version_id:
119
issue_org_id:
23987
author_id:
36999
assigned_to_id:
1
comments:
3
status_id:
5
tracker_id:
2
plus1:
0
affected_version:
closed_on:
affected_version_id:
ステータス-->[Closed]

説明

Hi,

We encounter slowness with using the scrum plugin (https://redmine.ociotec.com/projects/redmine-plugin-scrum).
It happens when dragging issue in the backlog.
It seems that the slowness comes from the fact that there is no index on the parent_id field of the issues table :
Here we have more than 500.000 issues
and for example a simple @SELECT COUNT() FROM issues WHERE issues.parent_id = 520784@ *takes 0.28 seconds
The slow method is all_dependent_issues.

Aside from the use of this plugin, on issues with children, a request is made on the parent_id field, that takes a few hundreds of milli-seconds.
We have added an index on that field, that fixes the issue.

Can this index be added by default in the Redmine migrations ?

Thanks a lot


journals

--------------------------------------------------------------------------------
Added in r16103.
--------------------------------------------------------------------------------
Thanks a lot !
--------------------------------------------------------------------------------

Admin Redmine さんが約4年前に更新

  • カテゴリPerformance_53 にセット
  • 対象バージョン3.4.0_119 にセット

他の形式にエクスポート: Atom PDF

いいね!0
いいね!0