mirror of
https://github.com/beetbox/beets.git
synced 2025-12-29 12:02:44 +01:00
I surprisingly found that many queries for fields that exist in the database are 'slow'. Querying items with 'month:0' used a slow query while 'title:0' used a fast one. I found the mistake in the logic: the field existence in the db check was done *after* prepending the table name to the field. This meant that the logic wrongly checked e.g. 'items.field' instead of 'field'. This commit fixes the above and renames the variables for more clarity. |
||
|---|---|---|
| .. | ||
| autotag | ||
| dbcore | ||
| test | ||
| ui | ||
| util | ||
| __init__.py | ||
| __main__.py | ||
| art.py | ||
| config_default.yaml | ||
| importer.py | ||
| library.py | ||
| logging.py | ||
| mediafile.py | ||
| plugins.py | ||
| random.py | ||
| vfs.py | ||