There's a hacky optimization here ... Dunno how premature but you can do this
```ruby
.where("#{Katello::ContentViewVersion.table_name}.content_view_id in (#{Katello::ContentView.default.pluck(:id).to_sql})")
```