fix: N+1 queries for notifications API #196
Labels
backend
Change to backend application
bug
Something isn't working
included in next release
Enhancement will be deployed in the next release
Currently their is a huge N+1 query problem due to using django-notifications-hq The core functionality of this library is great, however the API endpoint that is given with it is not optimized what so ever. I will need to build my own endpoint that fetches all of the primary data.
Current State:
Future State:
This should have the ability to be reduced to 1 or 2 queries. Using select related and prefetches.
The text was updated successfully, but these errors were encountered: