FreeMusicNinja / api.freemusic.ninja

Django-powered API for Free Music Ninja
http://api.freemusic.ninja/
BSD 3-Clause "New" or "Revised" License
4 stars 0 forks source link

Re-calculate similarities based on user similarities #25

Closed treyhunner closed 9 years ago

treyhunner commented 9 years ago

I'm not sure if this should happen on every UserSimilarity save, as a queued task shortly after saves, or as a scheduled task.

macro1 commented 9 years ago

Let's keep it simple first, do it on each save. Especially if we're saving each similarity separately, it will only be averaging across those records, one query for the calculation to take place, and a second to save. Two extra queries per similarity added or modified.

treyhunner commented 9 years ago

@macro1 that seems fine at first