Optimize slow SQL queries involving when rendering /library/artists and /library/albums
Both pages are known to be slow and CPU intensive, especially with big libraries and ARM devices.
I suspect this is because we are not leveraging our indexes and end up scanning much more data than we should.