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

Language Tagging autocomplete is very slow. #876

Closed
richmanrachel opened this issue May 17, 2022 · 1 comment
Closed

Language Tagging autocomplete is very slow. #876

richmanrachel opened this issue May 17, 2022 · 1 comment
Assignees
Labels
🐛 bug Something isn't working

Comments

@richmanrachel
Copy link

Describe the bug
Despite relatively few languages in our database, adding language information in the admin site is slow and oddly laborious. Other drop down menus/auto-complete boxes are much faster, so this bug is to track the specificities of the languages (Primary and Secondary).

To reproduce
Steps to reproduce the behavior:

  1. Go to a document detail page in the admin site
  2. Type "Hebrew" into Primary Languages. Rachel was able to type out the whole word and had to wait an additional 3 seconds before Hebrew came up as an option.

Expected behavior
Hebrew to pop up after "He"

Device information

  • Device: MacBook Pro Air
  • OS and version: macOS 12.0.1
  • Browser and version: Chrome Version 101.0.4951.54
  • Site version 4.4.1

Additional context
@rlskoeser noted in #725: "I think it's using the annotated query we use for the list view that generates counts of documents associated with each language. Let's open a separate bug to track the slowness specifically and I'll see if I can get the autocomplete search to use a different queryset."

@rlskoeser rlskoeser added the 🐛 bug Something isn't working label May 18, 2022
@rlskoeser rlskoeser self-assigned this May 18, 2022
@rlskoeser rlskoeser added the 🗜️ awaiting testing Implemented and ready to be tested label May 18, 2022
@richmanrachel
Copy link
Author

Much better! Thank you!

@richmanrachel richmanrachel removed the 🗜️ awaiting testing Implemented and ready to be tested label May 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants