Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Query time issue with "Tag" implementation

Aperta
#352 0 commenti 0 reazioni 1 assegnatario Vedi su GitHub

@zakriya057 ci sta già lavorando.

Dal 2/12/2024.

Valutazione

Questa issue non è ancora stata valutata.

Descrizione

enhancement feature proposal medium priority

Our current Implementation of tag's associated with a Shift is done via django-taggit here.
This implementation is somewhat lazy and causes a lot of overhead when querying all shifts
via the /shifts endpoint.
I have already created a branch in which django-silky is installed to profile the endpoints see the profiling branch.

Tags are a convenience feature for users to categorize Shift s and also sort them in a manner. Due to the nature
of how django-taggit implements Tags (ContentTypeRelations/Own db table) we are creating one query per shift object
as we are querying Shifts.

Main Issues:

  1. Huge Query overhead
  2. Somehow, if a new Shift has a Tag that is already existing, it is not reused but a new one is created (Not 100%, needs checking)

Goal:
Find a way to implement Tags in a way that the over head is reduced/eliminated. Possible changes in the Frontend are acceptable.

Check if Tags are reused.
If Tags are NOT reused, implement reusing them.

Lingua principale
Python
Stelle
0
Fork
4
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Non abbiamo ancora controllato i file di configurazione di questo progetto. Parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

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 ClockGU/clock-backend

Tutte le issue di ClockGU/clock-backend

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.