Skip to content
  • Sam Thursfield's avatar
    tracker: Split FTS resolve query into separate query · 43fc08bf
    Sam Thursfield authored
    The performance of `?artist fts:match ~artist_name` is good, while
    the performance of this is terrible:
    
        FILTER(STRLEN(~artist_name) = 0 || EXISTS {
            ?artist fts:match ~artist_name .
        })
    
    We can't use FTS in all cases, but we can decide in Python which to use
    and pick the fast path when possible.
    43fc08bf