Query time issue with "Tag" implementation
@zakriya057 ya está trabajando en esto.
Desde el 2/12/2024.
Evaluación
Este issue todavía no se ha evaluado.
Descripción
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:
- Huge Query overhead
- Somehow, if a new
Shifthas aTagthat 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.
- Lenguaje dominante
- Python
- Estrellas
- 0
- Forks
- 4
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Preparar el entorno
Aún no hemos revisado los archivos de configuración de este proyecto. Empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de ClockGU/clock-backend
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
ClockGU/clock-backend#467 ·
-
feature proposal
Dificultad 3/5 1-2 días Aptitud para principiantes 55/100
ClockGU/clock-backend#451 · 2 comentarios ·
-
:bug: Bug help wanted
Dificultad 3/5 1-2 días Aptitud para principiantes 45/100
ClockGU/clock-backend#435 ·
-
:bug: Bug
Dificultad 3/5 1-2 días Aptitud para principiantes 45/100
ClockGU/clock-backend#433 · 1 comentario · 1 reacción ·
-
enhancement
Dificultad 2/5 1-3 horas Aptitud para principiantes 45/100
ClockGU/clock-backend#412 ·
Todos los issues de ClockGU/clock-backend
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 74/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 84/100
gradio-app/gradio#13895 ·
Los mantenedores suelen responder en 1 día
-
build-error
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
spack/spack-packages#6713 ·
Los mantenedores suelen responder en 1 día
-
Use issue templatesAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
ActivityWatch/activitywatch#1464 · 1 reacción ·
Los mantenedores suelen responder en 1 día
-
[Bug]: The ckg tool drops the return type of every decorated Python method in class search resultsAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
bytedance/trae-agent#483 ·
Los mantenedores suelen responder en 1 día