GithubHelp home page GithubHelp logo

Comments (1)

timogoebel avatar timogoebel commented on August 16, 2024
SELECT "hosts"."id" AS t0_r0, "hosts"."name" AS t0_r1, "hosts"."last_compile" AS t0_r2, "hosts"."last_report" AS t0_r3, "hosts"."updated_at" AS t0_r4, "hosts"."created_at" AS t0_r5, "hosts"."root_pass" AS t0_r6, "hosts"."architecture_id" AS t0_r7, "hosts"."operatingsystem_id" AS t0_r8, "hosts"."environment_id" AS t0_r9, "hosts"."ptable_id" AS t0_r10, "hosts"."medium_id" AS t0_r11, "hosts"."build" AS t0_r12, "hosts"."comment" AS t0_r13, "hosts"."disk" AS t0_r14, "hosts"."installed_at" AS t0_r15, "hosts"."model_id" AS t0_r16, "hosts"."hostgroup_id" AS t0_r17, "hosts"."owner_id" AS t0_r18, "hosts"."owner_type" AS t0_r19, "hosts"."enabled" AS t0_r20, "hosts"."puppet_ca_proxy_id" AS t0_r21, "hosts"."managed" AS t0_r22, "hosts"."use_image" AS t0_r23, "hosts"."image_file" AS t0_r24, "hosts"."uuid" AS t0_r25, "hosts"."compute_resource_id" AS t0_r26, "hosts"."puppet_proxy_id" AS t0_r27, "hosts"."certname" AS t0_r28, "hosts"."image_id" AS t0_r29, "hosts"."organization_id" AS t0_r30, "hosts"."location_id" AS t0_r31, "hosts"."type" AS t0_r32, "hosts"."otp" AS t0_r33, "hosts"."realm_id" AS t0_r34, "hosts"."compute_profile_id" AS t0_r35, "hosts"."provision_method" AS t0_r36, "hosts"."grub_pass" AS t0_r37, "hosts"."discovery_rule_id" AS t0_r38, "hosts"."expired_on" AS t0_r39, "hosts"."global_status" AS t0_r40, "hosts"."lookup_value_matcher" AS t0_r41, "hosts"."pxe_loader" AS t0_r42, "hosts"."monitoring_proxy_id" AS t0_r43, "hosts"."rescue_mode" AS t0_r44, "hosts"."spacewalk_proxy_id" AS t0_r45, "hosts"."initiated_at" AS t0_r46, "hosts"."build_errors" AS t0_r47, "host_status"."id" AS t1_r0, "host_status"."type" AS t1_r1, "host_status"."status" AS t1_r2, "host_status"."host_id" AS t1_r3, "host_status"."reported_at" AS t1_r4, "vmware_facets"."id" AS t2_r0, "vmware_facets"."host_id" AS t2_r1, "vmware_facets"."vmware_cluster_id" AS t2_r2, "vmware_facets"."cpus" AS t2_r3, "vmware_facets"."corespersocket" AS t2_r4, "vmware_facets"."memory_mb" AS t2_r5, "vmware_facets"."guest_id" AS t2_r6, "vmware_facets"."tools_state" AS t2_r7, "vmware_facets"."cpu_hot_add" AS t2_r8, "vmware_facets"."created_at" AS t2_r9, "vmware_facets"."updated_at" AS t2_r10, "vmware_facets"."cpu_features" AS t2_r11, "vmware_facets"."hardware_version" AS t2_r12, "vmware_facets"."power_state" AS t2_r13, "environments"."id" AS t3_r0, "environments"."name" AS t3_r1, "environments"."created_at" AS t3_r2, "environments"."updated_at" AS t3_r3, "environments"."katello_id" AS t3_r4 FROM "hosts" INNER JOIN "host_status" ON "host_status"."host_id" = "hosts"."id" AND "host_status"."type" IN ('ForemanWreckingball::ToolsStatus') LEFT OUTER JOIN "vmware_facets" ON "vmware_facets"."host_id" = "hosts"."id" LEFT OUTER JOIN "environments" ON "environments"."id" = "hosts"."environment_id" AND (environments.id IN (1,2,6,11,82,106,107,109,110,120,431,434,567,594,621,1529,1530,759,1682,867,1790,900,963,972,975,978,1891,1041,1536,1089,1111,1538,1741,1171,1578,1268,1307,1337,1355,1445,1364,1365,1906,1370,1371,1918,1713,1387,1459,1919,1461,1767,1821,1860,1828,1476,1415,1620,1622,1423,1673,1882,1937,1978,1979,1981,1983,1985,1986,1987)) WHERE "hosts"."type" IN ('Host::Managed') AND "hosts"."organization_id" = 3 ORDER BY "hosts"."name" ASC;

https://explain.depesz.com/s/JTCk

SELECT "hosts"."id" AS t0_r0, "hosts"."name" AS t0_r1, "hosts"."last_compile" AS t0_r2, "hosts"."last_report" AS t0_r3, "hosts"."updated_at" AS t0_r4, "hosts"."created_at" AS t0_r5, "hosts"."root_pass" AS t0_r6, "hosts"."architecture_id" AS t0_r7, "hosts"."operatingsystem_id" AS t0_r8, "hosts"."environment_id" AS t0_r9, "hosts"."ptable_id" AS t0_r10, "hosts"."medium_id" AS t0_r11, "hosts"."build" AS t0_r12, "hosts"."comment" AS t0_r13, "hosts"."disk" AS t0_r14, "hosts"."installed_at" AS t0_r15, "hosts"."model_id" AS t0_r16, "hosts"."hostgroup_id" AS t0_r17, "hosts"."owner_id" AS t0_r18, "hosts"."owner_type" AS t0_r19, "hosts"."enabled" AS t0_r20, "hosts"."puppet_ca_proxy_id" AS t0_r21, "hosts"."managed" AS t0_r22, "hosts"."use_image" AS t0_r23, "hosts"."image_file" AS t0_r24, "hosts"."uuid" AS t0_r25, "hosts"."compute_resource_id" AS t0_r26, "hosts"."puppet_proxy_id" AS t0_r27, "hosts"."certname" AS t0_r28, "hosts"."image_id" AS t0_r29, "hosts"."organization_id" AS t0_r30, "hosts"."location_id" AS t0_r31, "hosts"."type" AS t0_r32, "hosts"."otp" AS t0_r33, "hosts"."realm_id" AS t0_r34, "hosts"."compute_profile_id" AS t0_r35, "hosts"."provision_method" AS t0_r36, "hosts"."grub_pass" AS t0_r37, "hosts"."discovery_rule_id" AS t0_r38, "hosts"."expired_on" AS t0_r39, "hosts"."global_status" AS t0_r40, "hosts"."lookup_value_matcher" AS t0_r41, "hosts"."pxe_loader" AS t0_r42, "hosts"."monitoring_proxy_id" AS t0_r43, "hosts"."rescue_mode" AS t0_r44, "hosts"."spacewalk_proxy_id" AS t0_r45, "hosts"."initiated_at" AS t0_r46, "hosts"."build_errors" AS t0_r47, "host_status"."id" AS t1_r0, "host_status"."type" AS t1_r1, "host_status"."status" AS t1_r2, "host_status"."host_id" AS t1_r3, "host_status"."reported_at" AS t1_r4, "vmware_facets"."id" AS t2_r0, "vmware_facets"."host_id" AS t2_r1, "vmware_facets"."vmware_cluster_id" AS t2_r2, "vmware_facets"."cpus" AS t2_r3, "vmware_facets"."corespersocket" AS t2_r4, "vmware_facets"."memory_mb" AS t2_r5, "vmware_facets"."guest_id" AS t2_r6, "vmware_facets"."tools_state" AS t2_r7, "vmware_facets"."cpu_hot_add" AS t2_r8, "vmware_facets"."created_at" AS t2_r9, "vmware_facets"."updated_at" AS t2_r10, "vmware_facets"."cpu_features" AS t2_r11, "vmware_facets"."hardware_version" AS t2_r12, "vmware_facets"."power_state" AS t2_r13, "environments"."id" AS t3_r0, "environments"."name" AS t3_r1, "environments"."created_at" AS t3_r2, "environments"."updated_at" AS t3_r3, "environments"."katello_id" AS t3_r4 FROM "hosts" INNER JOIN "host_status" ON "host_status"."host_id" = "hosts"."id" AND "host_status"."type" IN ('ForemanWreckingball::OperatingsystemStatus') LEFT OUTER JOIN "vmware_facets" ON "vmware_facets"."host_id" = "hosts"."id" LEFT OUTER JOIN "environments" ON "environments"."id" = "hosts"."environment_id" AND (environments.id IN (1,2,6,11,82,106,107,109,110,120,431,434,567,594,621,1529,1530,759,1682,867,1790,900,963,972,975,978,1891,1041,1536,1089,1111,1538,1741,1171,1578,1268,1307,1337,1355,1445,1364,1365,1906,1370,1371,1918,1713,1387,1459,1919,1461,1767,1821,1860,1828,1476,1415,1620,1622,1423,1673,1882,1937,1978,1979,1981,1983,1985,1986,1987)) WHERE "hosts"."type" IN ('Host::Managed') AND "hosts"."organization_id" = 3 ORDER BY "hosts"."name" ASC;

https://explain.depesz.com/s/glpoD

from foreman_wreckingball.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.