storage/db: optimize query terms matching "upload"
Since the upload ID is part of the primary key, we can avoid using the
RecordLabels table to find matching records. This takes the query
"upload:20170127.22 name:Gzip" from ~0.3s to ~0.04s on our production
Run-TryBot: Quentin Smith <firstname.lastname@example.org>
TryBot-Result: Gobot Gobot <email@example.com>
Reviewed-by: Russ Cox <firstname.lastname@example.org>
3 files changed