A 9.4 second pause when a fight started
Starting a boss fight froze the logic thread. Measured first: 9.4 s of queries, nearly all reading spell facts one spell at a time from tables with no indexes.
Read the entry: A 9.4 second pause when a fight started
I asked for it to be measured before anything changed. Nearly all of the 9.4 seconds was the enemy's default debuffs: five queries for each of 391 spells, on tables with no keys or indexes, so every lookup read the whole table.
The first fix made it worse, 18.6 seconds, because on a table with no index every row is tested against every value. Handing the database the whole set at once took it to 210 ms.
My view: a read-only data contract is no excuse for slow access, and as the database administrator I'd change the pipeline if asked.