Project

General

Profile

Bug #26529

APIv2 host show permissions node is very slow

Added by Timo Goebel over 1 year ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Difficulty:
Triaged:
No
Bugzilla link:
Pull request:
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

Related to Foreman - Feature #13639: show permissions for hosts as part of show apiClosed2016-02-09

History

#1 Updated by Timo Goebel over 1 year ago

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

Also available in: Atom PDF