misc: create indexes for common fields to improve query performance
TrueRou opened this issue · 4 comments
TrueRou commented
Its a problem that bancho.py doesn't originally create indexes for common fields like map_md5 and userid in scores table, filename in maps table, for example.
It's significant for a medium or large server to query with a indexed table.
cmyui commented
Yeah, I've been wanting to do this for a while - pretty high priority I'd say.
Tricky to find enough data to accurately test it with - ideally I'd like to do it with Akatsuki's full database, but we don't have an updated migration script..