Getting hostgroups via the API takes an eternity
Started GET "/hostgroups?format=json" for 18.104.22.168 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.
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.