Project

General

Profile

Bug #1842

Getting hostgroups via the API takes an eternity

Added by Nacho Barrientos almost 10 years ago. Updated almost 10 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
API
Target version:
Difficulty:
Triaged:
No
Bugzilla link:
Pull request:
Fixed in Releases:
Found in Releases:

Description

Query URL: https://foreman/hostgroups?format=json&page=1

Short log:

Started GET "/hostgroups?format=json" for 137.138.218.221 at Wed Aug 29 11:56:32 +0200 2012
Processing by HostgroupsController#index as JSON
Completed 200 OK in 35368ms (Views: 33777.7ms | ActiveRecord: 1591.4ms)

Attached is a full log.

production-clean.log production-clean.log 503 KB Nacho Barrientos, 08/29/2012 09:51 AM

Associated revisions

Revision 2aabb456 (diff)
Added by Ohad Levy almost 10 years ago

fixes #1842 - Getting hostgroups via the API takes an eternity.

This changes a bit the API resonspe as well, as it makes little sense in a rest
context to return full nested objects (when the child objects can be very large).

therefore, instead of environments and puppetclasses (and eventually smart vars)
the environment and classes are now reference by id.

History

#1 Updated by Ohad Levy almost 10 years ago

  • Status changed from New to Closed
  • % Done changed from 0 to 100

#2 Updated by Ohad Levy almost 10 years ago

  • Assignee set to Ohad Levy
  • Target version set to 1.1

Also available in: Atom PDF