Skip to content

/api/events call is slow when logged in - performs 1 query per event #51

@marcus-sonestedt

Description

@marcus-sonestedt

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.

Metadata

Metadata

Labels

performanceAffects site performance, not funciton

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions