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

Poor performance on searches with many results #1517

Open
huntertur opened this issue Jan 2, 2025 · 0 comments
Open

Poor performance on searches with many results #1517

huntertur opened this issue Jan 2, 2025 · 0 comments
Assignees

Comments

@huntertur
Copy link
Contributor

Capturing a discussion from 2025-01-01 in the developer chatroom.

When using a search query that returns many results (such as fox), the Next and Back buttons display a count of how many submissions there are to go. This count is capped to 10,000. For searches that return this many results, Weasyl will spend 260+ ms just in the query for these Next/Back counts, measured via ?query_debug, before the search results page is served to the user.

Suggested improvements from discussion:

  • Asynchronously get these counts using fetch.
  • Estimate the counts of how many submissions are left.
    • Exact count up to 100
    • TABLESAMPLE SYSTEM (10) on the content table up to 1,000
    • TABLESAMPLE SYSTEM (1) on the content table up to 10,000
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant