PDHdata / SmallFormats

Deck-stats server for less-common Magic: the Gathering formats
MIT License
6 stars 0 forks source link

Synergy scores take an hour to compute #56

Closed vtbassmatt closed 1 year ago

vtbassmatt commented 1 year ago

Even with the speedups gained from computing all synergies for a given card at once (rather than commander-by-commander), plus only updating if the score has changed, it takes almost an hour to run.

Ideas:

  1. Refresh synergies only once a week
  2. Like (1), but refresh top synergies a little more frequently
  3. Compute synergy on demand and store it (but this would make the first page load for any commander really slow)
  4. Cull some of the work, for example, is it really synergy if there's a commander with only one deck and a card is unique to that deck?
vtbassmatt commented 1 year ago

Decreased synergy refresh to weekly instead of daily.