Defect #37489

time consuming function function on showing an issue

Added by salman mp 2 months ago.

Status:NewStart date:
Priority:NormalDue date:
Assignee:-% Done:

0%

Category:Performance
Target version:-
Resolution: Affected version:4.2.7

Description

Hi
There is a function retrieve_previous_and_next_issue_ids in issues_controller show action that is too heavy when you have many issues.

In my test, getting an specific issue by API takes about 2 seconds, but exactly the same issue in web browser takes about 10 seconds. after commenting retrieve_previous_and_next_issue_ids, web browser also responses quikely.

1. Which are the usages of these function except showing prev/next link in issue view page?
2. Is is suitable to have an option to ignore this.
3. Is it possible to make this function more efficient?

Also available in: Atom PDF