Before, the decision to show a 'More' link was based on the following
query:
```
Rendering: layouts/_recent_edits_sidenav.html.erb
T+331.4 ms
Reader
1.6 ms
app/models/concerns/has_content.rb:76:in `content_list'
app/models/concerns/has_content.rb:89:in `content_count'
app/views/layouts/_recent_edits_sidenav.html.erb:21:in `_app_views_layouts__recent_edits_sidenav_html_erb___2971124340581730252_60587880'
app/views/layouts/application.html.erb:10:in `_app_views_layouts_application_html_erb__2102718760758308197_70160881531780'
app/controllers/content_controller.rb:65:in `block (2 levels) in index'
app/controllers/content_controller.rb:64:in `index'
SELECT id,name,page_type,user_id,created_at,updated_at,deleted_at,archived_at,privacy FROM universes WHERE user_id = 2 AND deleted_at IS NULL AND archived_at IS NULL UNION ALL SELECT id,name,page_type,user_id,created_at,updated_at,deleted_at,archived_at,privacy FROM characters WHERE user_id = 2 AND deleted_at IS NULL AND archived_at IS NULL UNION ALL SELECT id,name,page_type,user_id,created_at,updated_at,deleted_at,archived_at,privacy FROM locations WHERE user_id = 2 AND deleted_at IS NULL AND archived_at IS NULL UNION ALL SELECT id,name,page_type,user_id,created_at,updated_at,deleted_at,archived_at,privacy FROM items WHERE user_id = 2 AND deleted_at IS NULL AND archived_at IS NULL UNION ALL SELECT id,name,page_type,user_id,created_at,updated_at,deleted_at,archived_at,privacy FROM buildings WHERE user_id = 2 AND deleted_at IS NULL AND archived_at IS NULL UNION ALL SELECT id,name,page_type,user_id,created_at,updated_at,deleted_at,archived_at,privacy FROM conditions WHERE user_id = 2 AND deleted_at IS NULL AND archived_at IS NULL UNION ALL SELECT id,name,page_type,user_id,created_at,updated_at,deleted_at,archived_at,privacy FROM continents WHERE user_id = 2 AND deleted_at IS NULL AND archived_at IS NULL UNION ALL SELECT id,name,page_type,user_id,created_at,updated_at,deleted_at,archived_at,privacy FROM countries WHERE user_id = 2 AND deleted_at IS NULL AND archived_at IS NULL UNION ALL SELECT id,name,page_type,user_id,created_at,updated_at,deleted_at,archived_at,privacy FROM creatures WHERE user_id = 2 AND deleted_at IS NULL AND archived_at IS NULL UNION ALL SELECT id,name,page_type,user_id,created_at,updated_at,deleted_at,archived_at,privacy FROM deities WHERE user_id = 2 AND deleted_at IS NULL AND archived_at IS NULL UNION ALL SELECT id,name,page_type,user_id,created_at,updated_at,deleted_at,archived_at,privacy FROM floras WHERE user_id = 2 AND deleted_at IS NULL AND archived_at IS NULL UNION ALL SELECT id,name,page_type,user_id,created_at,updated_at,deleted_at,archived_at,privacy FROM foods WHERE user_id = 2 AND deleted_at IS NULL AND archived_at IS NULL UNION ALL SELECT id,name,page_type,user_id,created_at,updated_at,deleted_at,archived_at,privacy FROM governments WHERE user_id = 2 AND deleted_at IS NULL AND archived_at IS NULL UNION ALL SELECT id,name,page_type,user_id,created_at,updated_at,deleted_at,archived_at,privacy FROM groups WHERE user_id = 2 AND deleted_at IS NULL AND archived_at IS NULL UNION ALL SELECT id,name,page_type,user_id,created_at,updated_at,deleted_at,archived_at,privacy FROM jobs WHERE user_id = 2 AND deleted_at IS NULL AND archived_at IS NULL UNION ALL SELECT id,name,page_type,user_id,created_at,updated_at,deleted_at,archived_at,privacy FROM landmarks WHERE user_id = 2 AND deleted_at IS NULL AND archived_at IS NULL UNION ALL SELECT id,name,page_type,user_id,created_at,updated_at,deleted_at,archived_at,privacy FROM languages WHERE user_id = 2 AND deleted_at IS NULL AND archived_at IS NULL UNION ALL SELECT id,name,page_type,user_id,created_at,updated_at,deleted_at,archived_at,privacy FROM lores WHERE user_id = 2 AND deleted_at IS NULL AND archived_at IS NULL UNION ALL SELECT id,name,page_type,user_id,created_at,updated_at,deleted_at,archived_at,privacy FROM magics WHERE user_id = 2 AND deleted_at IS NULL AND archived_at IS NULL UNION ALL SELECT id,name,page_type,user_id,created_at,updated_at,deleted_at,archived_at,privacy FROM planets WHERE user_id = 2 AND deleted_at IS NULL AND archived_at IS NULL UNION ALL SELECT id,name,page_type,user_id,created_at,updated_at,deleted_at,archived_at,privacy FROM races WHERE user_id = 2 AND deleted_at IS NULL AND archived_at IS NULL UNION ALL SELECT id,name,page_type,user_id,created_at,updated_at,deleted_at,archived_at,privacy FROM religions WHERE user_id = 2 AND deleted_at IS NULL AND archived_at IS NULL UNION ALL SELECT id,name,page_type,user_id,created_at,updated_at,deleted_at,archived_at,privacy FROM scenes WHERE user_id = 2 AND deleted_at IS NULL AND archived_at IS NULL UNION ALL SELECT id,name,page_type,user_id,created_at,updated_at,deleted_at,archived_at,privacy FROM schools WHERE user_id = 2 AND deleted_at IS NULL AND archived_at IS NULL UNION ALL SELECT id,name,page_type,user_id,created_at,updated_at,deleted_at,archived_at,privacy FROM sports WHERE user_id = 2 AND deleted_at IS NULL AND archived_at IS NULL UNION ALL SELECT id,name,page_type,user_id,created_at,updated_at,deleted_at,archived_at,privacy FROM technologies WHERE user_id = 2 AND deleted_at IS NULL AND archived_at IS NULL UNION ALL SELECT id,name,page_type,user_id,created_at,updated_at,deleted_at,archived_at,privacy FROM towns WHERE user_id = 2 AND deleted_at IS NULL AND archived_at IS NULL UNION ALL SELECT id,name,page_type,user_id,created_at,updated_at,deleted_at,archived_at,privacy FROM traditions WHERE user_id = 2 AND deleted_at IS NULL AND archived_at IS NULL UNION ALL SELECT id,name,page_type,user_id,created_at,updated_at,deleted_at,archived_at,privacy FROM vehicles WHERE user_id = 2 AND deleted_at IS NULL AND archived_at IS NULL;
```
This query seems like it might be a little slow, for example if you have
a lot of _stuff_. It grabs everything from the database just for the
view to do '.length' on it.
One possible fix would be to switch it over to a COUNT(*) query and call
it a day, but it seems like we can just check for any recent attribute
changes, and use that as a proxy for whether to show the more link.
Since we have that in scope already, we don't even have to make a query
at all.
After this, the above query is gone.