Project

General

Profile

Bug #22642

Hostgroup unlimited search eager loads all hosts

Added by Marek Hulán 6 months ago. Updated about 1 month ago.

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

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 6 months ago

Fixes #22642 - limit searching by host to explicit query

History

#1 Updated by The Foreman Bot 6 months 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 6 months 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 6 months ago

  • Legacy Backlogs Release (now unused) set to 330

#4 Updated by Marek Hulán 6 months ago

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

#5 Updated by Tomer Brisker 6 months ago

  • Bugzilla link set to 1547986

Also available in: Atom PDF