Skip to content

Change Log list view has inefficient query #10170

@arthanson

Description

@arthanson

Proposed Changes

need to add some select_related and prefetch_related to the Change Log list view to reduce the number of SQL queries.

Justification

On the demo site noticed the Change log list view was somewhat slow, checking in the debug toolbar with demo data saw it was generating over 100 SQL queries. For longer lists it will just get slower.

Metadata

Metadata

Assignees

Labels

status: acceptedThis issue has been accepted for implementationtype: housekeepingChanges to the application which do not directly impact the end user

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions