this generates a bit of unused sql query, for example:

GET /api/hosts/h03.sat.lab.tlv.redhat.com/puppetclass_ids

```ruby
Host::Managed Load (0.3ms)  SELECT "hosts".* FROM "hosts" WHERE "hosts"."type" = 'Host::Managed' AND "hosts"."id" = 0 LIMIT 1
  Host::Managed Load (0.5ms)  SELECT "hosts".* FROM "hosts" WHERE "hosts"."type" = 'Host::Managed' AND "hosts"."name" = 'h03.sat.lab.tlv.redhat.com' LIMIT 1
  SQL (0.2ms)  SELECT host_classes.puppetclass_id FROM "host_classes" WHERE ("host_classes".host_id = 195)
```

This generates an unused query to fetch ID=0

GET /api/hosts/195/puppetclass_ids

```ruby
  Host::Managed Load (0.4ms)  SELECT "hosts".* FROM "hosts" WHERE "hosts"."type" = 'Host::Managed' AND "hosts"."id" = 195 LIMIT 1
  SQL (0.2ms)  SELECT host_classes.puppetclass_id FROM "host_classes" WHERE ("host_classes".host_id = 195)
```
This generates an unused query to fetch the host details and then to join with the ID, where you already have the ID.