You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When calling hash_tree, there will be an N + 1 problem
(0.4ms) SELECT COUNT(*) FROM "industry_categories" INNER JOIN "industry_category_hierarchies" ON "industry_categories"."id" = "industry_category_hierarchies"."ancestor_id" WHERE "industry_categories"."deleted_at" IS NULL AND "industry_category_hierarchies"."descendant_id" = $1 AND ("industry_categories"."id" != 1418) [["descendant_id", 1418]] (0.5ms) SELECT COUNT(*) FROM "industry_categories" INNER JOIN "industry_category_hierarchies" ON "industry_categories"."id" = "industry_category_hierarchies"."ancestor_id" WHERE "industry_categories"."deleted_at" IS NULL AND "industry_category_hierarchies"."descendant_id" = $1 AND ("industry_categories"."id" != 1104) [["descendant_id", 1104]] (0.5ms) SELECT COUNT(*) FROM "industry_categories" INNER JOIN "industry_category_hierarchies" ON "industry_categories"."id" = "industry_category_hierarchies"."ancestor_id" WHERE "industry_categories"."deleted_at" IS NULL AND "industry_category_hierarchies"."descendant_id" = $1 AND ("industry_categories"."id" != 1087) [["descendant_id", 1087]] (0.6ms) SELECT COUNT(*) FROM "industry_categories" INNER JOIN "industry_category_hierarchies" ON "industry_categories"."id" = "industry_category_hierarchies"."ancestor_id" WHERE "industry_categories"."deleted_at" IS NULL AND "industry_category_hierarchies"."descendant_id" = $1 AND ("industry_categories"."id" != 1407) [["descendant_id", 1407]] (0.5ms) SELECT COUNT(*) FROM "industry_categories" INNER JOIN "industry_category_hierarchies" ON "industry_categories"."id" = "industry_category_hierarchies"."ancestor_id" WHERE "industry_categories"."deleted_at" IS NULL AND "industry_category_hierarchies"."descendant_id" = $1 AND ("industry_categories"."id" != 1406) [["descendant_id", 1406]] (0.4ms) SELECT COUNT(*) FROM "industry_categories" INNER JOIN "industry_category_hierarchies" ON "industry_categories"."id" = "industry_category_hierarchies"."ancestor_id" WHERE "industry_categories"."deleted_at" IS NULL AND "industry_category_hierarchies"."descendant_id" = $1 AND ("industry_categories"."id" != 1395) [["descendant_id", 1395]]
The text was updated successfully, but these errors were encountered:
When calling hash_tree, there will be an N + 1 problem
(0.4ms) SELECT COUNT(*) FROM "industry_categories" INNER JOIN "industry_category_hierarchies" ON "industry_categories"."id" = "industry_category_hierarchies"."ancestor_id" WHERE "industry_categories"."deleted_at" IS NULL AND "industry_category_hierarchies"."descendant_id" = $1 AND ("industry_categories"."id" != 1418) [["descendant_id", 1418]] (0.5ms) SELECT COUNT(*) FROM "industry_categories" INNER JOIN "industry_category_hierarchies" ON "industry_categories"."id" = "industry_category_hierarchies"."ancestor_id" WHERE "industry_categories"."deleted_at" IS NULL AND "industry_category_hierarchies"."descendant_id" = $1 AND ("industry_categories"."id" != 1104) [["descendant_id", 1104]] (0.5ms) SELECT COUNT(*) FROM "industry_categories" INNER JOIN "industry_category_hierarchies" ON "industry_categories"."id" = "industry_category_hierarchies"."ancestor_id" WHERE "industry_categories"."deleted_at" IS NULL AND "industry_category_hierarchies"."descendant_id" = $1 AND ("industry_categories"."id" != 1087) [["descendant_id", 1087]] (0.6ms) SELECT COUNT(*) FROM "industry_categories" INNER JOIN "industry_category_hierarchies" ON "industry_categories"."id" = "industry_category_hierarchies"."ancestor_id" WHERE "industry_categories"."deleted_at" IS NULL AND "industry_category_hierarchies"."descendant_id" = $1 AND ("industry_categories"."id" != 1407) [["descendant_id", 1407]] (0.5ms) SELECT COUNT(*) FROM "industry_categories" INNER JOIN "industry_category_hierarchies" ON "industry_categories"."id" = "industry_category_hierarchies"."ancestor_id" WHERE "industry_categories"."deleted_at" IS NULL AND "industry_category_hierarchies"."descendant_id" = $1 AND ("industry_categories"."id" != 1406) [["descendant_id", 1406]] (0.4ms) SELECT COUNT(*) FROM "industry_categories" INNER JOIN "industry_category_hierarchies" ON "industry_categories"."id" = "industry_category_hierarchies"."ancestor_id" WHERE "industry_categories"."deleted_at" IS NULL AND "industry_category_hierarchies"."descendant_id" = $1 AND ("industry_categories"."id" != 1395) [["descendant_id", 1395]]
The text was updated successfully, but these errors were encountered: