Project

General

Profile

Bug #12207

Hosts#index slow load times

Added by Tom Caspy almost 4 years ago. Updated about 1 year ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Performance
Target version:
Difficulty:
Triaged:
Bugzilla link:
Team Backlog:
Fixed in Releases:
Found in Releases:

Related issues

Related to Foreman - Tracker #11657: Performance refactoring for HostsControllerNew2015-09-02

Associated revisions

Revision 638776c5 (diff)
Added by Tom Caspy almost 4 years ago

fixes #12207 - objects with ancestors should not call ancestors if cached

up until now, ancestry objects always called their ancestors when
linking to the object because to_param called get_title instead of title
(which can be cached)
this caused a LOT of pointless queries, slowed down Hosts#index alot

Revision aa3c5523 (diff)
Added by Tom Caspy over 3 years ago

fixes #12207 - objects with ancestors should not call ancestors if cached

up until now, ancestry objects always called their ancestors when
linking to the object because to_param called get_title instead of title
(which can be cached)
this caused a LOT of pointless queries, slowed down Hosts#index alot

(cherry picked from commit 638776c5d941f0fa8011022ff6720a81e5541852)

History

#1 Updated by Tom Caspy almost 4 years ago

  • Related to Tracker #11657: Performance refactoring for HostsController added

#2 Updated by The Foreman Bot almost 4 years ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/theforeman/foreman/pull/2838 added
  • Pull request deleted ()

#3 Updated by Tom Caspy almost 4 years ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100

#4 Updated by Dominic Cleal almost 4 years ago

  • Legacy Backlogs Release (now unused) set to 104

Also available in: Atom PDF