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

Other: OpenSearch autocomplete response is too slow? #1888

Open
2 of 7 tasks
szc126 opened this issue Jan 27, 2025 · 1 comment
Open
2 of 7 tasks

Other: OpenSearch autocomplete response is too slow? #1888

szc126 opened this issue Jan 27, 2025 · 1 comment
Labels
API API (Application Programming Interface): REST (Representational state transfer) bug/error Bugs and errors (timeout) complexity: unknown Unknown days of work content: search Search priority: low Issues/Tasks that are not so important

Comments

@szc126
Copy link
Collaborator

szc126 commented Jan 27, 2025

Website (required)

VocaDB

Describe the bug (required)

https://vocadb.net/opensearch.xml

	<Url type="application/x-suggestions+json"
			 template="https://vocadb.net/api/entries?nameMatchMode=Auto&amp;query={searchTerms}"/>

Firefox

Suggestions do not appear in Firefox.

Firefox's console has a message about a timeout:

Ctrl-Shift-J
Image

The timeout set in the stated file appears to be:

view-source:resource://gre/modules/SearchSuggestionController.sys.mjs

const REMOTE_TIMEOUT_DEFAULT = 500; // maximum time (ms) to wait before giving up on a remote suggestions

For me, https://vocadb.net/api/entries?nameMatchMode=Auto&query=初音ミク has a response time of approximately 2 seconds.

Chrome

Suggestions do not appear in Chromium, but I don't know how to investigate further

Since this is (presumably) a physical/monetary server issue for a niche feature that browser makers are suppressing, maybe this is a WONTFIX?

Checklist (required)

Fill out the checklist. Use strikethroughs or leave fields empty if you don't know or are unable to check/test.

  • Searched VocaDB/vocadb for duplicate issues.
  • Tested on the beta site.
  • Tested on different browsers (e.g. Firefox, Chrome, Safari, Edge).
  • Checked in private mode.
  • Cleared browser cache and cookies.
  • Checked the DevTools console.
  • Checked the syslog (mods+ only).
@szc126 szc126 added the bug/error Bugs and errors (timeout) label Jan 27, 2025
@FinnRG
Copy link
Member

FinnRG commented Jan 27, 2025

@szc126 It doesn't seem like there is a way to modify the firefox suggestion timeout. Therefore the only solution seems to be to optimize the search performance.

As a side note, I'm also not sure if the API even follows the expected suggestion API response format.

@andreoda andreoda added priority: low Issues/Tasks that are not so important complexity: unknown Unknown days of work labels Jan 27, 2025
@andreoda andreoda added content: search Search API API (Application Programming Interface): REST (Representational state transfer) labels Jan 27, 2025
@andreoda andreoda changed the title OpenSearch autocomplete response is too slow? Other: OpenSearch autocomplete response is too slow? Jan 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
API API (Application Programming Interface): REST (Representational state transfer) bug/error Bugs and errors (timeout) complexity: unknown Unknown days of work content: search Search priority: low Issues/Tasks that are not so important
Projects
Development

No branches or pull requests

3 participants