Project

General

Profile

Actions

Bug #29447

closed

Filter builds taxonomy search filter inefficiently

Added by Adam Ruzicka about 4 years ago. Updated about 4 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Users, Roles and Permissions
Target version:
-
Difficulty:
Triaged:
No
Fixed in Releases:
Found in Releases:

Description

If a filter supports taxonomy filtering and the role has many taxonomies assigned then the resulting search query could look like

(organization_id = 1 OR organization_id = 2 OR organization_id = 3) AND (location_id = 1 or location_id = 2)

However scoped search support using the IN operator, so we could get a more compact query, something along the lines of

organization_id ^ (1,2,3) AND location_id ^ (1,2)


Related issues 3 (0 open3 closed)

Related to foreman-tasks - Bug #30797: Postgres usage spikes and disk space completely filled up, when non-admin select Monitor -> TasksRejectedOndřej EzrActions
Related to Foreman - Bug #30847: Filters needs to rebuild the taxonomy_searchClosedOndřej EzrActions
Blocked by Foreman - Refactor #29532: Update scoped_search to 4.1.8ClosedActions
Actions #1

Updated by The Foreman Bot about 4 years ago

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

Updated by Anonymous about 4 years ago

Actions #3

Updated by The Foreman Bot about 4 years ago

  • Fixed in Releases 2.1.0 added
Actions #4

Updated by Tomer Brisker about 4 years ago

  • Category set to Users, Roles and Permissions
Actions #5

Updated by Adam Ruzicka about 4 years ago

  • Status changed from Ready For Testing to Closed
Actions #6

Updated by Ondřej Ezr over 3 years ago

  • Related to Bug #30797: Postgres usage spikes and disk space completely filled up, when non-admin select Monitor -> Tasks added
Actions #7

Updated by Ondřej Ezr over 3 years ago

  • Related to Bug #30847: Filters needs to rebuild the taxonomy_search added
Actions

Also available in: Atom PDF