Commit Graph
1 Commits
  • perf(db): add an index on settings.key (#5359)
    getSetting (WHERE key=?) runs on nearly every subscription request and job
    tick and had no index, so each lookup full-scans the settings table past the
    large xrayTemplateConfig blob. Add an index on settings.key; AutoMigrate
    creates it on existing DBs too. Includes a HasIndex test.