Project

General

Profile

Actions

Bug #15233

closed

viewing CV version list slow as packages are added

Added by Chris Duryee almost 8 years ago. Updated almost 6 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Content Views
Target version:
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

As the `katello_repository_rpms` table grows, the CVV page gets slower and slower. For example, this query can take 300+ msec:

LOG:  duration: 329.058 ms  execute a36: SELECT COUNT(*) FROM "katello_rpms" INNER JOIN "katello_repository_rpms" ON "katello_repository_rpms"."rpm_id" = "katello_rpms"."id" WHERE "katello_repository_rpms"."repository_id" IN (SELECT "katello_repositories"."id" FROM "katello_repositories"  WHERE "katello_repositories"."content_view_version_id" = $1 AND (environment_id is NULL))

This is run once for every CVV on the page.

Actions #1

Updated by Chris Duryee almost 8 years ago

  • Description updated (diff)
Actions #2

Updated by The Foreman Bot almost 8 years ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/Katello/katello/pull/6086 added
Actions #3

Updated by Chris Duryee almost 8 years ago

  • Bugzilla link set to 1265884
Actions #4

Updated by Chris Duryee almost 8 years ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100
Actions #5

Updated by Eric Helms almost 8 years ago

  • translation missing: en.field_release set to 86
Actions

Also available in: Atom PDF