Website to help organizations & clubs coordinate activities amongst their members
GNU Affero General Public License v3.0
2
stars
1
forks
source link
/api/events call is slow when logged in - performs 1 query per event #51
Open
marcus-sonestedt opened 4 years ago
This is because EventSerializer adds some extra properties that are python methods on the Event model, and these two performs SQL queries separately.
It'd be ideal if this could be fetched (via django annotate) as part of the API call instead, to avoid ~160 separate sql queries.