Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Store TMDB entries in the database #23

Open
Archmonger opened this issue Apr 30, 2021 · 0 comments
Open

Store TMDB entries in the database #23

Archmonger opened this issue Apr 30, 2021 · 0 comments
Labels
enhancement New feature or request

Comments

@Archmonger
Copy link
Owner

Archmonger commented Apr 30, 2021

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 Archmonger added the enhancement New feature or request label Apr 30, 2021
@Archmonger Archmonger changed the title Slow "My/All Issues" load when multiple items exist Store TMDB entries in the database Jul 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant