Skip to content

Reduces listby queries + Hot reloading django

Mark Csurgay requested to merge reduce-user-page-queries into master

The listbyuser route had the N+1 problem squared. This quickly resulted in tens of thousands of queries every time a user with a lot of answers was visited.

This MR improves the speed of the listbyuser endpoint by about a factor of 5x and reduces the amount of queries executed to a constant 3.

Additionally I also added a new Dockerfile which together with docker compose watch allows for hot-reloading of Django.

Merge request reports

Loading