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

Changes date filtering performance #12970

Open
2 tasks done
nijel opened this issue Nov 8, 2024 · 0 comments
Open
2 tasks done

Changes date filtering performance #12970

nijel opened this issue Nov 8, 2024 · 0 comments
Assignees
Labels
bug Something is broken.

Comments

@nijel
Copy link
Member

nijel commented Nov 8, 2024

Describe the issue

Changes browsing when filtering by date is slow. This is because PostgreSQL doesn't use database index on timestamp once it is coverted to date by using timestamp__date lookup.

I already tried

  • I've read and searched the documentation.
  • I've searched for similar filed issues in this repository.

Steps to reproduce the behavior

  1. Have many changes
  2. See what happens on the database upon filtering for changes by date

Expected behavior

No response

Screenshots

No response

Exception traceback

No response

How do you run Weblate?

Git checkout

Weblate versions

No response

Weblate deploy checks

No response

Additional context

606b60e made the similar change for search.

A similar approach should be used in weblate/trans/views/changes.py. I am not sure if the same issue affects weblate/metrics/models.py where date lookup is used, but it is there actually to look for date, but it should be investigated as well.

@nijel nijel added the bug Something is broken. label Nov 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something is broken.
Projects
None yet
Development

No branches or pull requests

2 participants