beets/beetsplug
Adrian Sampson 7d9f556cbe introducing "slow queries"
In preparation for enabling queries over flexattrs, this is a new path that
lets queries avoid generating SQLite expressions altogether. Any query that
can be completely evaluated in SQLite will be, but when it can't, we now fall
back to running the entire query in Python by selecting everything from the
database and running the `match` predicate.

To begin with, this mechanism replaces RegisteredFieldQueries, which
previously used Python callbacks for evaluation. Now they just indicate that
they're slow queries and the query system falls back automatically.

This has the great upside that it lets use implement arbitrarily complex
queries without shoehorning everything into SQLite when that (a) is way too
complicated and (b) doesn't buy us much performance anyway. The obvious
drawback is that any code dealing with queries now has to handle two cases
(slow and fast).

In the future, we could optimize this further by combing fast and slow query
styles. For example, if you want to match with a substring *and* a regular
expression, we can do a first pass in SQLite and apply the regex predicate on
the results. Avoided for now because premature optimization, etc., etc.

Next step: implement flexattr matches as slow queries.
2013-08-16 14:28:46 -07:00
..
bpd bpd: Use AnyFieldQuery when searching "any" fields 2013-07-02 11:00:10 +02:00
lastgenre changelog for #254 2013-04-21 20:41:01 -07:00
web web: item_count -> stats (#333) 2013-06-21 10:27:49 -07:00
__init__.py happy new year 2013-01-11 10:43:41 -08:00
beatport.py add data_source, data_url to TrackInfo objects 2013-06-12 16:19:30 -07:00
bench.py happy new year 2013-01-11 10:43:41 -08:00
chroma.py move Distance class to hooks module 2013-06-10 15:21:32 -07:00
convert.py docs/changelog for convert paths config (#285) 2013-05-22 15:00:53 -07:00
discogs.py move Distance class to hooks module 2013-06-10 15:21:32 -07:00
duplicates.py Fix zero length field error under Python 2.6 2013-06-14 13:59:14 +01:00
echonest_tempo.py echonest_tempo: catch socket.error 2013-03-09 11:33:55 -08:00
embedart.py fixing things 2013-03-25 15:20:38 -03:00
fetchart.py changelog/thanks/tweaks for #355 2013-08-08 16:19:16 -07:00
fuzzy.py introducing "slow queries" 2013-08-16 14:28:46 -07:00
ihate.py remove singleton enforcement from plugins 2013-01-31 12:13:19 -08:00
importfeeds.py changelog for #180 2013-03-12 22:00:11 -07:00
info.py happy new year 2013-01-11 10:43:41 -08:00
inline.py inline: rename "pathfields" to "item_fields" 2013-05-28 23:20:19 -07:00
lyrics.py Logging: remove match ratio, add source website name 2013-06-29 14:24:41 +02:00
mbcollection.py mbcollection: use library functions 2013-03-11 19:43:57 -07:00
mbsync.py fix interface to ID matching 2013-06-01 17:22:39 -07:00
missing.py Fix zero length field error under Python 2.6 2013-06-14 13:59:14 +01:00
mpdupdate.py mpdupdate: Allow UNIX domain socket for MPD server 2013-06-05 13:20:27 -07:00
random.py random: py26 fix 2013-06-12 16:09:41 -07:00
replaygain.py replaygain: catch Unicode exc on Windows (GC-499) 2013-01-12 14:38:19 -08:00
rewrite.py fix inline and rewrite for instance fields 2013-02-02 08:35:54 -08:00
scrub.py scrub: handle IOError 2013-06-10 16:06:43 -07:00
smartplaylist.py smartplaylist: split query w/ shlex (fixes #256) 2013-04-21 20:55:07 -07:00
the.py remove singleton enforcement from plugins 2013-01-31 12:13:19 -08:00
zero.py zero: fix nulling fields containing None 2013-06-01 17:28:59 -07:00