Hey,
I dont think that the data stacking up. We can reproduce the behaviour on a “isolated” foreman host - no other request were handled.
We dont have a lot of NICs, fact names, taks and so on.
The following plugins are activated: “foreman-tasks”, “foreman_hooks” and “foreman_remote_execution”.
Below your can see a small part of the querylog of one enc call from the puppetserver - there are a lot of “SELECT lookup_keys” and “SELECT lookup_values”.
2018-05-03T07:49:19 2b02b61d [sql] [D] CACHE (0.0ms) SELECT "lookup_keys"."id" AS t0_r0, "lookup_keys"."key" AS t0_r1, "lookup_keys"."created_at" AS t0_r2, "lookup_keys"."updated_at" AS t0_r3, "lookup_keys"."puppetclass_id" AS t0_r4, "lookup_keys"."default_value" AS t0_r5, "lookup_keys"."path" AS t0_r6, "lookup_keys"."description" AS t0_r7, "lookup_keys"."validator_type" AS t0_r8, "lookup_keys"."validator_rule" AS t0_r9, "lookup_keys"."key_type" AS t0_r10, "lookup_keys"."override" AS t0_r11, "lookup_keys"."required" AS t0_r12, "lookup_keys"."merge_overrides" AS t0_r13, "lookup_keys"."avoid_duplicates" AS t0_r14, "lookup_keys"."omit" AS t0_r15, "lookup_keys"."type" AS t0_r16, "lookup_keys"."merge_default" AS t0_r17, "lookup_keys"."hidden_value" AS t0_r18, "environment_classes"."puppetclass_id" AS t1_r0, "environment_classes"."environment_id" AS t1_r1, "environment_classes"."id" AS t1_r2, "environment_classes"."puppetclass_lookup_key_id" AS t1_r3 FROM "lookup_keys" INNER JOIN "environment_classes" ON "environment_classes"."puppetclass_lookup_key_id" = "lookup_keys"."id" INNER JOIN "lookup_values" ON "lookup_values"."lookup_key_id" = "lookup_keys"."id" WHERE "lookup_keys"."type" IN ('PuppetclassLookupKey') AND "lookup_keys"."override" = $1 AND "environment_classes"."environment_id" = $2 AND "environment_classes"."puppetclass_id" IN (70, 191, 94, 347, 230, 10, 128, 772, 278, 50, 163, 636, 310, 131, 616, 116, 7) ORDER BY lookup_keys.key [["override", true], ["environment_id", 4]]
2018-05-03T07:49:19 2b02b61d [sql] [D] CACHE (0.0ms) SELECT "lookup_values".* FROM "lookup_values" WHERE "lookup_values"."match" IN ('fqdn=sonya-lawrence.server.de', 'hostgroup=', 'os=SLES 12.2', 'domain=server.de', 'environment=devel') AND "lookup_values"."lookup_key_id" IN (SELECT "lookup_keys"."id" FROM "lookup_keys" INNER JOIN "environment_classes" ON "environment_classes"."puppetclass_lookup_key_id" = "lookup_keys"."id" WHERE "lookup_keys"."type" IN ('PuppetclassLookupKey') AND "lookup_keys"."override" = $1 AND "environment_classes"."environment_id" = $2 AND "environment_classes"."puppetclass_id" IN (70, 191, 94, 347, 230, 10, 128, 772, 278, 50, 163, 636, 310, 131, 616, 116, 7) ORDER BY lookup_keys.key) [["override", true], ["environment_id", 4]]
2018-05-03T07:49:19 2b02b61d [sql] [D] CACHE (0.0ms) SELECT "lookup_keys".* FROM "lookup_keys" WHERE "lookup_keys"."id" IN (406) ORDER BY lookup_keys.key
2018-05-03T07:49:19 2b02b61d [sql] [D] CACHE (0.0ms) SELECT "lookup_keys"."id" AS t0_r0, "lookup_keys"."key" AS t0_r1, "lookup_keys"."created_at" AS t0_r2, "lookup_keys"."updated_at" AS t0_r3, "lookup_keys"."puppetclass_id" AS t0_r4, "lookup_keys"."default_value" AS t0_r5, "lookup_keys"."path" AS t0_r6, "lookup_keys"."description" AS t0_r7, "lookup_keys"."validator_type" AS t0_r8, "lookup_keys"."validator_rule" AS t0_r9, "lookup_keys"."key_type" AS t0_r10, "lookup_keys"."override" AS t0_r11, "lookup_keys"."required" AS t0_r12, "lookup_keys"."merge_overrides" AS t0_r13, "lookup_keys"."avoid_duplicates" AS t0_r14, "lookup_keys"."omit" AS t0_r15, "lookup_keys"."type" AS t0_r16, "lookup_keys"."merge_default" AS t0_r17, "lookup_keys"."hidden_value" AS t0_r18, "environment_classes"."puppetclass_id" AS t1_r0, "environment_classes"."environment_id" AS t1_r1, "environment_classes"."id" AS t1_r2, "environment_classes"."puppetclass_lookup_key_id" AS t1_r3 FROM "lookup_keys" INNER JOIN "environment_classes" ON "environment_classes"."puppetclass_lookup_key_id" = "lookup_keys"."id" INNER JOIN "lookup_values" ON "lookup_values"."lookup_key_id" = "lookup_keys"."id" WHERE "lookup_keys"."type" IN ('PuppetclassLookupKey') AND "lookup_keys"."override" = $1 AND "environment_classes"."environment_id" = $2 AND "environment_classes"."puppetclass_id" IN (70, 191, 94, 347, 230, 10, 128, 772, 278, 50, 163, 636, 310, 131, 616, 116, 7) ORDER BY lookup_keys.key [["override", true], ["environment_id", 4]]
2018-05-03T07:49:19 2b02b61d [sql] [D] CACHE (0.0ms) SELECT "lookup_values".* FROM "lookup_values" WHERE "lookup_values"."match" IN ('fqdn=sonya-lawrence.server.de', 'hostgroup=', 'os=SLES 12.2', 'domain=server.de', 'environment=devel') AND "lookup_values"."lookup_key_id" IN (SELECT "lookup_keys"."id" FROM "lookup_keys" INNER JOIN "environment_classes" ON "environment_classes"."puppetclass_lookup_key_id" = "lookup_keys"."id" WHERE "lookup_keys"."type" IN ('PuppetclassLookupKey') AND "lookup_keys"."override" = $1 AND "environment_classes"."environment_id" = $2 AND "environment_classes"."puppetclass_id" IN (70, 191, 94, 347, 230, 10, 128, 772, 278, 50, 163, 636, 310, 131, 616, 116, 7) ORDER BY lookup_keys.key) [["override", true], ["environment_id", 4]]
2018-05-03T07:49:19 2b02b61d [sql] [D] CACHE (0.0ms) SELECT "lookup_keys".* FROM "lookup_keys" WHERE "lookup_keys"."id" IN (406) ORDER BY lookup_keys.key
2018-05-03T07:49:19 2b02b61d [sql] [D] CACHE (0.0ms) SELECT "lookup_keys"."id" AS t0_r0, "lookup_keys"."key" AS t0_r1, "lookup_keys"."created_at" AS t0_r2, "lookup_keys"."updated_at" AS t0_r3, "lookup_keys"."puppetclass_id" AS t0_r4, "lookup_keys"."default_value" AS t0_r5, "lookup_keys"."path" AS t0_r6, "lookup_keys"."description" AS t0_r7, "lookup_keys"."validator_type" AS t0_r8, "lookup_keys"."validator_rule" AS t0_r9, "lookup_keys"."key_type" AS t0_r10, "lookup_keys"."override" AS t0_r11, "lookup_keys"."required" AS t0_r12, "lookup_keys"."merge_overrides" AS t0_r13, "lookup_keys"."avoid_duplicates" AS t0_r14, "lookup_keys"."omit" AS t0_r15, "lookup_keys"."type" AS t0_r16, "lookup_keys"."merge_default" AS t0_r17, "lookup_keys"."hidden_value" AS t0_r18, "environment_classes"."puppetclass_id" AS t1_r0, "environment_classes"."environment_id" AS t1_r1, "environment_classes"."id" AS t1_r2, "environment_classes"."puppetclass_lookup_key_id" AS t1_r3 FROM "lookup_keys" INNER JOIN "environment_classes" ON "environment_classes"."puppetclass_lookup_key_id" = "lookup_keys"."id" INNER JOIN "lookup_values" ON "lookup_values"."lookup_key_id" = "lookup_keys"."id" WHERE "lookup_keys"."type" IN ('PuppetclassLookupKey') AND "lookup_keys"."override" = $1 AND "environment_classes"."environment_id" = $2 AND "environment_classes"."puppetclass_id" IN (70, 191, 94, 347, 230, 10, 128, 772, 278, 50, 163, 636, 310, 131, 616, 116, 7) ORDER BY lookup_keys.key [["override", true], ["environment_id", 4]]
2018-05-03T07:49:19 2b02b61d [sql] [D] CACHE (0.0ms) SELECT "lookup_values".* FROM "lookup_values" WHERE "lookup_values"."match" IN ('fqdn=sonya-lawrence.server.de', 'hostgroup=', 'os=SLES 12.2', 'domain=server.de', 'environment=devel') AND "lookup_values"."lookup_key_id" IN (SELECT "lookup_keys"."id" FROM "lookup_keys" INNER JOIN "environment_classes" ON "environment_classes"."puppetclass_lookup_key_id" = "lookup_keys"."id" WHERE "lookup_keys"."type" IN ('PuppetclassLookupKey') AND "lookup_keys"."override" = $1 AND "environment_classes"."environment_id" = $2 AND "environment_classes"."puppetclass_id" IN (70, 191, 94, 347, 230, 10, 128, 772, 278, 50, 163, 636, 310, 131, 616, 116, 7) ORDER BY lookup_keys.key) [["override", true], ["environment_id", 4]]
2018-05-03T07:49:19 2b02b61d [sql] [D] CACHE (0.0ms) SELECT "lookup_keys".* FROM "lookup_keys" WHERE "lookup_keys"."id" IN (406) ORDER BY lookup_keys.key
2018-05-03T07:49:19 2b02b61d [sql] [D] CACHE (0.0ms) SELECT "lookup_keys"."id" AS t0_r0, "lookup_keys"."key" AS t0_r1, "lookup_keys"."created_at" AS t0_r2, "lookup_keys"."updated_at" AS t0_r3, "lookup_keys"."puppetclass_id" AS t0_r4, "lookup_keys"."default_value" AS t0_r5, "lookup_keys"."path" AS t0_r6, "lookup_keys"."description" AS t0_r7, "lookup_keys"."validator_type" AS t0_r8, "lookup_keys"."validator_rule" AS t0_r9, "lookup_keys"."key_type" AS t0_r10, "lookup_keys"."override" AS t0_r11, "lookup_keys"."required" AS t0_r12, "lookup_keys"."merge_overrides" AS t0_r13, "lookup_keys"."avoid_duplicates" AS t0_r14, "lookup_keys"."omit" AS t0_r15, "lookup_keys"."type" AS t0_r16, "lookup_keys"."merge_default" AS t0_r17, "lookup_keys"."hidden_value" AS t0_r18, "environment_classes"."puppetclass_id" AS t1_r0, "environment_classes"."environment_id" AS t1_r1, "environment_classes"."id" AS t1_r2, "environment_classes"."puppetclass_lookup_key_id" AS t1_r3 FROM "lookup_keys" INNER JOIN "environment_classes" ON "environment_classes"."puppetclass_lookup_key_id" = "lookup_keys"."id" INNER JOIN "lookup_values" ON "lookup_values"."lookup_key_id" = "lookup_keys"."id" WHERE "lookup_keys"."type" IN ('PuppetclassLookupKey') AND "lookup_keys"."override" = $1 AND "environment_classes"."environment_id" = $2 AND "environment_classes"."puppetclass_id" IN (70, 191, 94, 347, 230, 10, 128, 772, 278, 50, 163, 636, 310, 131, 616, 116, 7) ORDER BY lookup_keys.key [["override", true], ["environment_id", 4]]
2018-05-03T07:49:19 2b02b61d [sql] [D] CACHE (0.0ms) SELECT "lookup_values".* FROM "lookup_values" WHERE "lookup_values"."match" IN ('fqdn=sonya-lawrence.server.de', 'hostgroup=', 'os=SLES 12.2', 'domain=server.de', 'environment=devel') AND "lookup_values"."lookup_key_id" IN (SELECT "lookup_keys"."id" FROM "lookup_keys" INNER JOIN "environment_classes" ON "environment_classes"."puppetclass_lookup_key_id" = "lookup_keys"."id" WHERE "lookup_keys"."type" IN ('PuppetclassLookupKey') AND "lookup_keys"."override" = $1 AND "environment_classes"."environment_id" = $2 AND "environment_classes"."puppetclass_id" IN (70, 191, 94, 347, 230, 10, 128, 772, 278, 50, 163, 636, 310, 131, 616, 116, 7) ORDER BY lookup_keys.key) [["override", true], ["environment_id", 4]]
2018-05-03T07:49:19 2b02b61d [sql] [D] CACHE (0.0ms) SELECT "lookup_keys".* FROM "lookup_keys" WHERE "lookup_keys"."id" IN (406) ORDER BY lookup_keys.key
2018-05-03T07:49:19 2b02b61d [sql] [D] CACHE (0.0ms) SELECT "lookup_keys"."id" AS t0_r0, "lookup_keys"."key" AS t0_r1, "lookup_keys"."created_at" AS t0_r2, "lookup_keys"."updated_at" AS t0_r3, "lookup_keys"."puppetclass_id" AS t0_r4, "lookup_keys"."default_value" AS t0_r5, "lookup_keys"."path" AS t0_r6, "lookup_keys"."description" AS t0_r7, "lookup_keys"."validator_type" AS t0_r8, "lookup_keys"."validator_rule" AS t0_r9, "lookup_keys"."key_type" AS t0_r10, "lookup_keys"."override" AS t0_r11, "lookup_keys"."required" AS t0_r12, "lookup_keys"."merge_overrides" AS t0_r13, "lookup_keys"."avoid_duplicates" AS t0_r14, "lookup_keys"."omit" AS t0_r15, "lookup_keys"."type" AS t0_r16, "lookup_keys"."merge_default" AS t0_r17, "lookup_keys"."hidden_value" AS t0_r18, "environment_classes"."puppetclass_id" AS t1_r0, "environment_classes"."environment_id" AS t1_r1, "environment_classes"."id" AS t1_r2, "environment_classes"."puppetclass_lookup_key_id" AS t1_r3 FROM "lookup_keys" INNER JOIN "environment_classes" ON "environment_classes"."puppetclass_lookup_key_id" = "lookup_keys"."id" INNER JOIN "lookup_values" ON "lookup_values"."lookup_key_id" = "lookup_keys"."id" WHERE "lookup_keys"."type" IN ('PuppetclassLookupKey') AND "lookup_keys"."override" = $1 AND "environment_classes"."environment_id" = $2 AND "environment_classes"."puppetclass_id" IN (70, 191, 94, 347, 230, 10, 128, 772, 278, 50, 163, 636, 310, 131, 616, 116, 7) ORDER BY lookup_keys.key [["override", true], ["environment_id", 4]]
2018-05-03T07:49:19 2b02b61d [sql] [D] CACHE (0.0ms) SELECT "lookup_values".* FROM "lookup_values" WHERE "lookup_values"."match" IN ('fqdn=sonya-lawrence.server.de', 'hostgroup=', 'os=SLES 12.2', 'domain=server.de', 'environment=devel') AND "lookup_values"."lookup_key_id" IN (SELECT "lookup_keys"."id" FROM "lookup_keys" INNER JOIN "environment_classes" ON "environment_classes"."puppetclass_lookup_key_id" = "lookup_keys"."id" WHERE "lookup_keys"."type" IN ('PuppetclassLookupKey') AND "lookup_keys"."override" = $1 AND "environment_classes"."environment_id" = $2 AND "environment_classes"."puppetclass_id" IN (70, 191, 94, 347, 230, 10, 128, 772, 278, 50, 163, 636, 310, 131, 616, 116, 7) ORDER BY lookup_keys.key) [["override", true], ["environment_id", 4]]
2018-05-03T07:49:19 2b02b61d [sql] [D] CACHE (0.0ms) SELECT "lookup_keys".* FROM "lookup_keys" WHERE "lookup_keys"."id" IN (406) ORDER BY lookup_keys.key
2018-05-03T07:49:19 2b02b61d [sql] [D] CACHE (0.0ms) SELECT "lookup_keys"."id" AS t0_r0, "lookup_keys"."key" AS t0_r1, "lookup_keys"."created_at" AS t0_r2, "lookup_keys"."updated_at" AS t0_r3, "lookup_keys"."puppetclass_id" AS t0_r4, "lookup_keys"."default_value" AS t0_r5, "lookup_keys"."path" AS t0_r6, "lookup_keys"."description" AS t0_r7, "lookup_keys"."validator_type" AS t0_r8, "lookup_keys"."validator_rule" AS t0_r9, "lookup_keys"."key_type" AS t0_r10, "lookup_keys"."override" AS t0_r11, "lookup_keys"."required" AS t0_r12, "lookup_keys"."merge_overrides" AS t0_r13, "lookup_keys"."avoid_duplicates" AS t0_r14, "lookup_keys"."omit" AS t0_r15, "lookup_keys"."type" AS t0_r16, "lookup_keys"."merge_default" AS t0_r17, "lookup_keys"."hidden_value" AS t0_r18, "environment_classes"."puppetclass_id" AS t1_r0, "environment_classes"."environment_id" AS t1_r1, "environment_classes"."id" AS t1_r2, "environment_classes"."puppetclass_lookup_key_id" AS t1_r3 FROM "lookup_keys" INNER JOIN "environment_classes" ON "environment_classes"."puppetclass_lookup_key_id" = "lookup_keys"."id" INNER JOIN "lookup_values" ON "lookup_values"."lookup_key_id" = "lookup_keys"."id" WHERE "lookup_keys"."type" IN ('PuppetclassLookupKey') AND "lookup_keys"."override" = $1 AND "environment_classes"."environment_id" = $2 AND "environment_classes"."puppetclass_id" IN (70, 191, 94, 347, 230, 10, 128, 772, 278, 50, 163, 636, 310, 131, 616, 116, 7) ORDER BY lookup_keys.key [["override", true], ["environment_id", 4]]
2018-05-03T07:49:19 2b02b61d [sql] [D] CACHE (0.0ms) SELECT "lookup_values".* FROM "lookup_values" WHERE "lookup_values"."match" IN ('fqdn=sonya-lawrence.server.de', 'hostgroup=', 'os=SLES 12.2', 'domain=server.de', 'environment=devel') AND "lookup_values"."lookup_key_id" IN (SELECT "lookup_keys"."id" FROM "lookup_keys" INNER JOIN "environment_classes" ON "environment_classes"."puppetclass_lookup_key_id" = "lookup_keys"."id" WHERE "lookup_keys"."type" IN ('PuppetclassLookupKey') AND "lookup_keys"."override" = $1 AND "environment_classes"."environment_id" = $2 AND "environment_classes"."puppetclass_id" IN (70, 191, 94, 347, 230, 10, 128, 772, 278, 50, 163, 636, 310, 131, 616, 116, 7) ORDER BY lookup_keys.key) [["override", true], ["environment_id", 4]]
2018-05-03T07:49:19 2b02b61d [sql] [D] CACHE (0.0ms) SELECT "lookup_keys".* FROM "lookup_keys" WHERE "lookup_keys"."id" IN (406) ORDER BY lookup_keys.key
2018-05-03T07:49:19 2b02b61d [sql] [D] CACHE (0.0ms) SELECT "lookup_keys"."id" AS t0_r0, "lookup_keys"."key" AS t0_r1, "lookup_keys"."created_at" AS t0_r2, "lookup_keys"."updated_at" AS t0_r3, "lookup_keys"."puppetclass_id" AS t0_r4, "lookup_keys"."default_value" AS t0_r5, "lookup_keys"."path" AS t0_r6, "lookup_keys"."description" AS t0_r7, "lookup_keys"."validator_type" AS t0_r8, "lookup_keys"."validator_rule" AS t0_r9, "lookup_keys"."key_type" AS t0_r10, "lookup_keys"."override" AS t0_r11, "lookup_keys"."required" AS t0_r12, "lookup_keys"."merge_overrides" AS t0_r13, "lookup_keys"."avoid_duplicates" AS t0_r14, "lookup_keys"."omit" AS t0_r15, "lookup_keys"."type" AS t0_r16, "lookup_keys"."merge_default" AS t0_r17, "lookup_keys"."hidden_value" AS t0_r18, "environment_classes"."puppetclass_id" AS t1_r0, "environment_classes"."environment_id" AS t1_r1, "environment_classes"."id" AS t1_r2, "environment_classes"."puppetclass_lookup_key_id" AS t1_r3 FROM "lookup_keys" INNER JOIN "environment_classes" ON "environment_classes"."puppetclass_lookup_key_id" = "lookup_keys"."id" INNER JOIN "lookup_values" ON "lookup_values"."lookup_key_id" = "lookup_keys"."id" WHERE "lookup_keys"."type" IN ('PuppetclassLookupKey') AND "lookup_keys"."override" = $1 AND "environment_classes"."environment_id" = $2 AND "environment_classes"."puppetclass_id" IN (70, 191, 94, 347, 230, 10, 128, 772, 278, 50, 163, 636, 310, 131, 616, 116, 7) ORDER BY lookup_keys.key [["override", true], ["environment_id", 4]]
2018-05-03T07:49:19 2b02b61d [sql] [D] CACHE (0.0ms) SELECT "lookup_values".* FROM "lookup_values" WHERE "lookup_values"."match" IN ('fqdn=sonya-lawrence.server.de', 'hostgroup=', 'os=SLES 12.2', 'domain=server.de', 'environment=devel') AND "lookup_values"."lookup_key_id" IN (SELECT "lookup_keys"."id" FROM "lookup_keys" INNER JOIN "environment_classes" ON "environment_classes"."puppetclass_lookup_key_id" = "lookup_keys"."id" WHERE "lookup_keys"."type" IN ('PuppetclassLookupKey') AND "lookup_keys"."override" = $1 AND "environment_classes"."environment_id" = $2 AND "environment_classes"."puppetclass_id" IN (70, 191, 94, 347, 230, 10, 128, 772, 278, 50, 163, 636, 310, 131, 616, 116, 7) ORDER BY lookup_keys.key) [["override", true], ["environment_id", 4]]
2018-05-03T07:49:19 2b02b61d [sql] [D] CACHE (0.0ms) SELECT "lookup_keys".* FROM "lookup_keys" WHERE "lookup_keys"."id" IN (406) ORDER BY lookup_keys.key
2018-05-03T07:49:19 2b02b61d [sql] [D] CACHE (0.0ms) SELECT "lookup_keys"."id" AS t0_r0, "lookup_keys"."key" AS t0_r1, "lookup_keys"."created_at" AS t0_r2, "lookup_keys"."updated_at" AS t0_r3, "lookup_keys"."puppetclass_id" AS t0_r4, "lookup_keys"."default_value" AS t0_r5, "lookup_keys"."path" AS t0_r6, "lookup_keys"."description" AS t0_r7, "lookup_keys"."validator_type" AS t0_r8, "lookup_keys"."validator_rule" AS t0_r9, "lookup_keys"."key_type" AS t0_r10, "lookup_keys"."override" AS t0_r11, "lookup_keys"."required" AS t0_r12, "lookup_keys"."merge_overrides" AS t0_r13, "lookup_keys"."avoid_duplicates" AS t0_r14, "lookup_keys"."omit" AS t0_r15, "lookup_keys"."type" AS t0_r16, "lookup_keys"."merge_default" AS t0_r17, "lookup_keys"."hidden_value" AS t0_r18, "environment_classes"."puppetclass_id" AS t1_r0, "environment_classes"."environment_id" AS t1_r1, "environment_classes"."id" AS t1_r2, "environment_classes"."puppetclass_lookup_key_id" AS t1_r3 FROM "lookup_keys" INNER JOIN "environment_classes" ON "environment_classes"."puppetclass_lookup_key_id" = "lookup_keys"."id" INNER JOIN "lookup_values" ON "lookup_values"."lookup_key_id" = "lookup_keys"."id" WHERE "lookup_keys"."type" IN ('PuppetclassLookupKey') AND "lookup_keys"."override" = $1 AND "environment_classes"."environment_id" = $2 AND "environment_classes"."puppetclass_id" IN (70, 191, 94, 347, 230, 10, 128, 772, 278, 50, 163, 636, 310, 131, 616, 116, 7) ORDER BY lookup_keys.key [["override", true], ["environment_id", 4]]
2018-05-03T07:49:19 2b02b61d [sql] [D] CACHE (0.0ms) SELECT "lookup_values".* FROM "lookup_values" WHERE "lookup_values"."match" IN ('fqdn=sonya-lawrence.server.de', 'hostgroup=', 'os=SLES 12.2', 'domain=server.de', 'environment=devel') AND "lookup_values"."lookup_key_id" IN (SELECT "lookup_keys"."id" FROM "lookup_keys" INNER JOIN "environment_classes" ON "environment_classes"."puppetclass_lookup_key_id" = "lookup_keys"."id" WHERE "lookup_keys"."type" IN ('PuppetclassLookupKey') AND "lookup_keys"."override" = $1 AND "environment_classes"."environment_id" = $2 AND "environment_classes"."puppetclass_id" IN (70, 191, 94, 347, 230, 10, 128, 772, 278, 50, 163, 636, 310, 131, 616, 116, 7) ORDER BY lookup_keys.key) [["override", true], ["environment_id", 4]]
2018-05-03T07:49:19 2b02b61d [sql] [D] CACHE (0.0ms) SELECT "lookup_keys".* FROM "lookup_keys" WHERE "lookup_keys"."id" IN (406) ORDER BY lookup_keys.key
The full querylog is available under https://nopaste.linux-dev.org/?1181191