Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

N+1 Query when going to user history #1430

Open
JasonLovesDoggo opened this issue Dec 22, 2024 · 0 comments
Open

N+1 Query when going to user history #1430

JasonLovesDoggo opened this issue Dec 22, 2024 · 0 comments

Comments

@JasonLovesDoggo
Copy link

Describe the bug
An N+1 query when going to user history

To Reproduce
Steps to reproduce the behavior:

  1. Go to /admin/YOUR_APP_NAME/user/ANY_USER_ID/history/

Expected behavior
The query to be ran without an additional N+1 query

Screenshots
image

Confirmed to happen using debug toolabr
image

Environment (please complete the following information):

  • OS: Windows 23H2
  • Browser (if applicable): Chrome 131
  • Django Simple History Version: 3.7.0
  • Django Version: 4.2
  • Database Version: Postgres 17

Additional context
This has happened before in #495 and fixed in #496

I fixed this issue by commenting out https://github.com/jazzband/django-simple-history/blob/master/simple_history/admin.py#L141

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant