beetbox / beets

music library manager and MusicBrainz tagger
http://beets.io/
MIT License
12.57k stars 1.8k forks source link

Filter albums by tracks fields and vice versa #5327

Closed snejus closed 6 days ago

snejus commented 1 week ago

Fixes #4360

This PR enables querying albums by track fields and tracks by album fields, and speeds up querying albums by path field.

It originally was part of #5240, however we found that the changes related to the flexible attributes caused degradation in performance. So this PR contains the first part of #5240 which joined items and albums tables in queries.

snejus commented 6 days ago

In the original PR, the interface for field was reverted back, can we do that for this one as well? Just in case that any third-part plugins use it.

It already has this change. Although not as a separate commit but fused into bcc2826