Project

General

Profile

Bug #22642

Hostgroup unlimited search eager loads all hosts

Added by Marek Hulán about 5 years ago. Updated over 4 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Host groups
Target version:
Difficulty:
Triaged:
Bugzilla link:
Fixed in Releases:
Found in Releases:
Red Hat JIRA:

Description

if you search hostgroup with query like "host.fqdn" it will find hostgroup containing that host. This can be pretty slow and memory consuming since it joins host and host's relations. It would be better to add :only_explicit => true for host scoped search definition, I don't think this would be broadly used and users could still achieve it by using "host = host.fqdn" if needed.


Related issues

Related to Katello - Bug #22644: Scoped search definitions added by hostgroup extension should not add more relations to generic searchClosed2018-02-21

Associated revisions

Revision 0c387178 (diff)
Added by Marek Hulán about 5 years ago

Fixes #22642 - limit searching by host to explicit query

History

#1 Updated by The Foreman Bot about 5 years ago

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

#2 Updated by Marek Hulán about 5 years ago

  • Related to Bug #22644: Scoped search definitions added by hostgroup extension should not add more relations to generic search added

#3 Updated by Tomer Brisker about 5 years ago

  • Legacy Backlogs Release (now unused) set to 330

#4 Updated by Marek Hulán about 5 years ago

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

#5 Updated by Tomer Brisker about 5 years ago

  • Bugzilla link set to 1547986

Also available in: Atom PDF