Project

General

Profile

Actions

Bug #26529

open

APIv2 host show permissions node is very slow

Added by Timo Goebel about 5 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Difficulty:
Triaged:
No
Fixed in Releases:
Found in Releases:

Description

The permissions node in the Host's show action in APIv2 causes a lot of lookups to figure out the permissions. This has a high performance penalty (approx. 1 second).

https://github.com/theforeman/foreman/blob/develop/app/views/api/v2/hosts/show.json.rabl#L27-L32

This gist contains logs that show the slow queries:

https://gist.github.com/timogoebel/62ea0ac432b66f3e158863aea5bbc712#file-api-refactor-2-cleaned-txt-L766-L768


Related issues 1 (0 open1 closed)

Related to Foreman - Feature #13639: show permissions for hosts as part of show apiClosedJustin Sherrill02/09/2016Actions
Actions #1

Updated by Timo Goebel about 5 years ago

  • Related to Feature #13639: show permissions for hosts as part of show api added
Actions

Also available in: Atom PDF