Conreq icon indicating copy to clipboard operation
Conreq copied to clipboard

Store TMDB entries in the database

Open Archmonger opened this issue 4 years ago • 0 comments

Store TMDB entries in the database in order to avoid pulling each entry from cache. Currently pulling them from cache causes slow "My/All Issues" load when multiple items exist

Implementation ideas After grabbing the Arr database via API, do the following:

  1. Fetch Conreq's currently stored model of the Arr database
  2. Calculate the difference and delete any IDs that have been removed
  3. Calculate the intersection and call MODEL_NAME.objects.bulk_update on anything pre-existing
  4. Call MODEL_NAME.objects.bulk_create on anything new

Archmonger avatar Apr 30 '21 08:04 Archmonger