We need `artist_ids` in most of the queries, so let’s make them a generated column and put an index on them. This reduces times for getArtistNameById from ~300ms to ~20ms and for the main “latest” table from ~250ms to ~60ms. The `artist_has_been_snatched` logic moves into the torrent filter, so we don’t have to work on such large records further down. Change-Id: I5a1929bd9c81ea0031e512d01897c0e460ded077 Reviewed-on: https://cl.tvl.fyi/c/depot/+/13240 Tested-by: BuildkiteCI Reviewed-by: Profpatsch <mail@profpatsch.de> |
||
|---|---|---|
| .. | ||
| AppT.hs | ||
| Bencode.hs | ||
| Html.hs | ||
| Http.hs | ||
| JsonLd.hs | ||
| Optional.hs | ||
| Redacted.hs | ||
| Transmission.hs | ||
| WhatcdResolver.hs | ||