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

search lag/endless lopping #3562

Open
Ben-EvergreenS opened this issue Oct 15, 2024 · 2 comments
Open

search lag/endless lopping #3562

Ben-EvergreenS opened this issue Oct 15, 2024 · 2 comments
Labels
Module: Core Application Type: Performance Improvements to the speed and efficiency of the interface and backend.

Comments

@Ben-EvergreenS
Copy link

link to ticket

Similar to closed issue #3383 . When searching for email or subscriber either the search loops endlessly or lags significantly. Haven't been able to confirm this so far with other accounts.

@jmduke jmduke added Type: Performance Improvements to the speed and efficiency of the interface and backend. Module: Core Application labels Oct 15, 2024
@jmduke
Copy link
Member

jmduke commented Oct 15, 2024

This is due to the historical_emails leg of searching. I think we're missing an index, though longer term we probably need some cogent strategy beyond naively querying that collection.

@jmduke
Copy link
Member

jmduke commented Oct 15, 2024

Some basic profiling reveals that the expensive leg is actually vectorizing the body, which makes sense. We should start using a GeneratedField instead (https://docs.djangoproject.com/en/5.1/ref/models/fields/#django.db.models.GeneratedField) which means bumping to Django 5.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Module: Core Application Type: Performance Improvements to the speed and efficiency of the interface and backend.
Projects
Status: Not started
Development

No branches or pull requests

2 participants