FRC5892 / HeroHours

Team 5892's attendance solution
1 stars 4 forks source link

Logs list in admin #39

Open yyy2356 opened 1 week ago

yyy2356 commented 1 week ago

Speed up the logs list in admin view. It is currently extremely slow.

yyy2356 commented 1 week ago

Its slow because the db is being accessed repeatedly to display the logs, i believe. issue is in the get_name function

MichaelStatt-S commented 1 week ago

It think this can be solved by using relationships in Django see https://docs.djangoproject.com/en/5.1/topics/db/examples/many_to_one/