Project

General

Custom queries

Profile

Actions

Refactor #3016

closed

accessible_hostgroups method unnecessarily sorts in memory

Added by Ohad Levy over 11 years ago. Updated almost 7 years ago.

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

Description

since we added the full label to the db, we can ask the db to sort for us.

see source:app/helpers/hosts_and_hostgroups_helper.rb#L20

Actions #1

Updated by Ohad Levy over 11 years ago

also, changing the order to check first for an admin should improve the query a bit (when you are an admin).

Actions #4

Updated by Anonymous about 10 years ago

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

Also available in: Atom PDF