Content reindexing Incredibly Inefficient
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.
Fixes #6005 - speeding up content reindexing
Instead of indexing per repo, we can index all of each content
and it will be much faster. Sample times with a content view with about
Old Reindex: 7m05s
New Reindex: 3m13s
the more content views and versions you have the greater the difference