Another pretty strange one if the content_views index page is viewed:
2024-01-24T14:20:59 [D|sql|daf7ec59] Katello::ContentViewVersion Load (0.6ms) SELECT "katello_content_view_versions".* FROM "katello_content_view_versions" WHERE "katello_content_view_versions"."content_view_id" IN ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, $17, $18, $19, $20) [["content_view_id", 3], ["content_view_id", 4], ["content_view_id", 5], ["content_view_id", 6], ["content_view_id", 7], ["content_view_id", 8], ["content_view_id", 9], ["content_view_id", 10], ["content_view_id", 11], ["content_view_id", 12], ["content_view_id", 13], ["content_view_id", 14], ["content_view_id", 15], ["content_view_id", 16], ["content_view_id", 17], ["content_view_id", 18], ["content_view_id", 19], ["content_view_id", 20], ["content_view_id", 21], ["content_view_id", 22]]
2024-01-24T14:21:00 [D|sql|daf7ec59] Katello::ContentViewVersion Load (0.3ms) SELECT "katello_content_view_versions".* FROM "katello_content_view_versions" WHERE "katello_content_view_versions"."content_view_id" = $1 ORDER BY major DESC, minor DESC LIMIT $2 [["content_view_id", 17], ["LIMIT", 1]]
2024-01-24T14:21:00 [D|sql|daf7ec59] CACHE Katello::ContentViewVersion Load (0.0ms) SELECT "katello_content_view_versions".* FROM "katello_content_view_versions" WHERE "katello_content_view_versions"."content_view_id" = $1 ORDER BY major DESC, minor DESC LIMIT $2 [["content_view_id", 17], ["LIMIT", 1]]
2024-01-24T14:21:00 [D|sql|daf7ec59] CACHE Katello::ContentViewVersion Load (0.0ms) SELECT "katello_content_view_versions".* FROM "katello_content_view_versions" WHERE "katello_content_view_versions"."content_view_id" = $1 ORDER BY major DESC, minor DESC LIMIT $2 [["content_view_id", 17], ["LIMIT", 1]]
2024-01-24T14:21:00 [D|sql|daf7ec59] CACHE Katello::ContentViewVersion Load (0.0ms) SELECT "katello_content_view_versions".* FROM "katello_content_view_versions" WHERE "katello_content_view_versions"."content_view_id" = $1 ORDER BY major DESC, minor DESC LIMIT $2 [["content_view_id", 17], ["LIMIT", 1]]
2024-01-24T14:21:00 [D|sql|daf7ec59] CACHE Katello::ContentViewVersion Load (0.0ms) SELECT "katello_content_view_versions".* FROM "katello_content_view_versions" WHERE "katello_content_view_versions"."content_view_id" = $1 ORDER BY major DESC, minor DESC LIMIT $2 [["content_view_id", 17], ["LIMIT", 1]]
2024-01-24T14:21:00 [D|sql|daf7ec59] CACHE Katello::ContentViewVersion Load (0.0ms) SELECT "katello_content_view_versions".* FROM "katello_content_view_versions" WHERE "katello_content_view_versions"."content_view_id" = $1 ORDER BY major DESC, minor DESC LIMIT $2 [["content_view_id", 17], ["LIMIT", 1]]
2024-01-24T14:21:00 [D|sql|daf7ec59] CACHE Katello::ContentViewVersion Load (0.0ms) SELECT "katello_content_view_versions".* FROM "katello_content_view_versions" WHERE "katello_content_view_versions"."content_view_id" = $1 ORDER BY major DESC, minor DESC LIMIT $2 [["content_view_id", 17], ["LIMIT", 1]]
2024-01-24T14:21:00 [D|sql|daf7ec59] CACHE Katello::ContentViewVersion Load (0.0ms) SELECT "katello_content_view_versions".* FROM "katello_content_view_versions" WHERE "katello_content_view_versions"."content_view_id" = $1 ORDER BY major DESC, minor DESC LIMIT $2 [["content_view_id", 17], ["LIMIT", 1]]
2024-01-24T14:21:00 [D|sql|daf7ec59] CACHE Katello::ContentViewVersion Load (0.0ms) SELECT "katello_content_view_versions".* FROM "katello_content_view_versions" WHERE "katello_content_view_versions"."content_view_id" = $1 ORDER BY major DESC, minor DESC LIMIT $2 [["content_view_id", 17], ["LIMIT", 1]]
2024-01-24T14:21:00 [D|sql|daf7ec59] CACHE Katello::ContentViewVersion Load (0.0ms) SELECT "katello_content_view_versions".* FROM "katello_content_view_versions" WHERE "katello_content_view_versions"."content_view_id" = $1 ORDER BY major DESC, minor DESC LIMIT $2 [["content_view_id", 17], ["LIMIT", 1]]
2024-01-24T14:21:00 [D|sql|daf7ec59] CACHE Katello::ContentViewVersion Load (0.0ms) SELECT "katello_content_view_versions".* FROM "katello_content_view_versions" WHERE "katello_content_view_versions"."content_view_id" = $1 ORDER BY major DESC, minor DESC LIMIT $2 [["content_view_id", 17], ["LIMIT", 1]]
2024-01-24T14:21:00 [D|sql|daf7ec59] CACHE Katello::ContentViewVersion Load (0.0ms) SELECT "katello_content_view_versions".* FROM "katello_content_view_versions" WHERE "katello_content_view_versions"."content_view_id" = $1 ORDER BY major DESC, minor DESC LIMIT $2 [["content_view_id", 17], ["LIMIT", 1]]
2024-01-24T14:21:00 [D|sql|daf7ec59] CACHE Katello::ContentViewVersion Load (0.0ms) SELECT "katello_content_view_versions".* FROM "katello_content_view_versions" WHERE "katello_content_view_versions"."content_view_id" = $1 ORDER BY major DESC, minor DESC LIMIT $2 [["content_view_id", 17], ["LIMIT", 1]]
2024-01-24T14:21:00 [D|sql|daf7ec59] CACHE Katello::ContentViewVersion Load (0.0ms) SELECT "katello_content_view_versions".* FROM "katello_content_view_versions" WHERE "katello_content_view_versions"."content_view_id" = $1 ORDER BY major DESC, minor DESC LIMIT $2 [["content_view_id", 17], ["LIMIT", 1]]
2024-01-24T14:21:00 [D|sql|daf7ec59] CACHE Katello::ContentViewVersion Load (0.0ms) SELECT "katello_content_view_versions".* FROM "katello_content_view_versions" WHERE "katello_content_view_versions"."content_view_id" = $1 ORDER BY major DESC, minor DESC LIMIT $2 [["content_view_id", 17], ["LIMIT", 1]]
2024-01-24T14:21:00 [D|sql|daf7ec59] CACHE Katello::ContentViewVersion Load (0.0ms) SELECT "katello_content_view_versions".* FROM "katello_content_view_versions" WHERE "katello_content_view_versions"."content_view_id" = $1 ORDER BY major DESC, minor DESC LIMIT $2 [["content_view_id", 17], ["LIMIT", 1]]
2024-01-24T14:21:00 [D|sql|daf7ec59] CACHE Katello::ContentViewVersion Load (0.0ms) SELECT "katello_content_view_versions".* FROM "katello_content_view_versions" WHERE "katello_content_view_versions"."content_view_id" = $1 ORDER BY major DESC, minor DESC LIMIT $2 [["content_view_id", 17], ["LIMIT", 1]]
2024-01-24T14:21:00 [D|sql|daf7ec59] CACHE Katello::ContentViewVersion Load (0.0ms) SELECT "katello_content_view_versions".* FROM "katello_content_view_versions" WHERE "katello_content_view_versions"."content_view_id" = $1 ORDER BY major DESC, minor DESC LIMIT $2 [["content_view_id", 17], ["LIMIT", 1]]
2024-01-24T14:21:00 [D|sql|daf7ec59] CACHE Katello::ContentViewVersion Load (0.0ms) SELECT "katello_content_view_versions".* FROM "katello_content_view_versions" WHERE "katello_content_view_versions"."content_view_id" = $1 ORDER BY major DESC, minor DESC LIMIT $2 [["content_view_id", 17], ["LIMIT", 1]]
2024-01-24T14:21:00 [D|sql|daf7ec59] CACHE Katello::ContentViewVersion Load (0.0ms) SELECT "katello_content_view_versions".* FROM "katello_content_view_versions" WHERE "katello_content_view_versions"."content_view_id" = $1 ORDER BY major DESC, minor DESC LIMIT $2 [["content_view_id", 17], ["LIMIT", 1]]
2024-01-24T14:21:00 [D|sql|daf7ec59] CACHE Katello::ContentViewVersion Load (0.0ms) SELECT "katello_content_view_versions".* FROM "katello_content_view_versions" WHERE "katello_content_view_versions"."content_view_id" = $1 ORDER BY major DESC, minor DESC LIMIT $2 [["content_view_id", 17], ["LIMIT", 1]]
2024-01-24T14:21:00 [D|sql|daf7ec59] CACHE Katello::ContentViewVersion Load (0.0ms) SELECT "katello_content_view_versions".* FROM "katello_content_view_versions" WHERE "katello_content_view_versions"."content_view_id" = $1 ORDER BY major DESC, minor DESC LIMIT $2 [["content_view_id", 17], ["LIMIT", 1]]
2024-01-24T14:21:00 [D|sql|daf7ec59] CACHE Katello::ContentViewVersion Load (0.0ms) SELECT "katello_content_view_versions".* FROM "katello_content_view_versions" WHERE "katello_content_view_versions"."content_view_id" = $1 ORDER BY major DESC, minor DESC LIMIT $2 [["content_view_id", 17], ["LIMIT", 1]]
2024-01-24T14:21:00 [D|sql|daf7ec59] CACHE Katello::ContentViewVersion Load (0.0ms) SELECT "katello_content_view_versions".* FROM "katello_content_view_versions" WHERE "katello_content_view_versions"."content_view_id" = $1 ORDER BY major DESC, minor DESC LIMIT $2 [["content_view_id", 17], ["LIMIT", 1]]
2024-01-24T14:21:00 [D|sql|daf7ec59] Katello::ContentViewVersion Load (0.3ms) SELECT "katello_content_view_versions".* FROM "katello_content_view_versions" WHERE "katello_content_view_versions"."content_view_id" = $1 ORDER BY created_at DESC [["content_view_id", 17]]
2024-01-24T14:21:00 [D|sql|daf7ec59] Katello::ContentViewVersion Load (0.2ms) SELECT "katello_content_view_versions".* FROM "katello_content_view_versions" WHERE "katello_content_view_versions"."content_view_id" = $1 ORDER BY "katello_content_view_versions"."created_at" DESC LIMIT $2 [["content_view_id", 17], ["LIMIT", 1]]
Why are there 27 SQL queries for the same? OK, they are cached butā¦