Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

Query time issue with "Tag" implementation

Abierto
#352 0 comentarios 0 reacciones 1 asignado Ver en GitHub

@zakriya057 ya está trabajando en esto.

Desde el 2/12/2024.

Evaluación

Este issue todavía no se ha evaluado.

Descripción

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.

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

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de ClockGU/clock-backend

Todos los issues de ClockGU/clock-backend

Issues similares

Más issues de Python

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.