mopidy / mopidy-local-sqlite

DEPRECATED (Mopidy SQLite local library extension)
https://mopidy.com
Apache License 2.0
30 stars 10 forks source link

Browsing Artists is Slow #4

Closed tkem closed 10 years ago

tkem commented 10 years ago

Real slow. Indexing album.artists and track.artist might help, and is planned for #1 anyway...

tkem commented 10 years ago

Alternatively, doing a scan over album.artists and tracks.artists may be the better approach in the first place, e.g.

SELECT 'directory', artist.uri, artist.name
          FROM (
            SELECT DISTINCT artists FROM album
             UNION
            SELECT DISTINCT artists FROM track
          )
          JOIN artist on artists = artist.uri
         ORDER BY name

Indexing won't hurt, anyway...