Bug 1112749

Summary: Content reindexing Incredibly Inefficient
Product: Red Hat Satellite Reporter: Eric Helms <ehelms>
Component: Content ManagementAssignee: Justin Sherrill <jsherril>
Status: CLOSED CURRENTRELEASE QA Contact: sthirugn <sthirugn>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.0.3CC: bbuckingham, cwelton, jmontleo, sthirugn
Target Milestone: UnspecifiedKeywords: Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
URL: http://projects.theforeman.org/issues/6005
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-09-11 12:19:26 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Eric Helms 2014-06-24 15:41:21 UTC
Currently when running 'rake katello:reindex' we loop over each repo and index packages, errata, etc..  on each repo.  While this is simpler it is incredibly inefficient especially if you many content views with many versions.  The same set of packages will end up being reindex over and over and over again.

A more efficient way would be to just go through the entire $ITEM list in pulp and index that list once.

Comment 1 Eric Helms 2014-06-24 15:41:22 UTC
Created from redmine issue http://projects.theforeman.org/issues/6005

Comment 2 Eric Helms 2014-06-24 15:41:27 UTC
Upstream bug assigned to jsherril

Comment 4 Bryan Kearney 2014-06-24 16:05:17 UTC
Moving to POST since upstream bug http://projects.theforeman.org/issues/6005 has been closed

Comment 6 sthirugn@redhat.com 2014-09-04 21:00:17 UTC
Marking this Verified since this is a developer task and the upstream issue is closed. Please open new bugs if necessary.

Version Tested:
GA Snap 7 - Satellite-6.0.4-RHEL-6-20140829.0

Comment 7 Bryan Kearney 2014-09-11 12:19:26 UTC
This was delivered with Satellite 6.0 which was released on 10 September 2014.