Radio: Slow Playlist Loading #33
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The time to process/load a playlist from SQLite currently increases exponentially with each additional row returned.
The artist/genre pairings and other track data are contained in separate databases.
Presently,
get_genre
is being called for each individual SQLite row returned by the playlist query.Because the API does not maintain a persistent connection to the database for most/all operations, it opens the "file"/connects to the DB on each call.
An additional method (name TBD) is to be created for batch genre lookups. The method will accept as input a list of artists, and will return a dictionary comprised of the artist/genre pairs.
Offending code:
Related: New query