Store TMDB entries in the database

Aperta
#23 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
35/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
django, python
Ambito
backend, database

Direzione di ricerca

Start by locating the Arr database API fetch, the current TMDB cache or model, and the code used by the “My/All Issues” load. Trace how stored entries can be compared with the fetched data, then verify that removed entries are deleted and existing and new entries are synchronized without repeated cache pulls.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

enhancement

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
Lingua principale
Python
Stelle
151
Fork
8
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

  • Include un Dockerfile o un file Docker Compose
  • Ha un modello di pull request
  • Nessuna guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di Archmonger/Conreq

Tutte le issue di Archmonger/Conreq

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.