fix: make answers past the first 999 reachable - #1593
Open
culfin wants to merge 1 commit into
Open
Conversation
Two sides of the same limit, which is why they arrive together. **In the browser.** The detail page asked for `page_size: 999` and never asked again. A question with more answers than that simply ended — the rest existed in the database and could not be reached from the page. It now requests page by page, like every other list in the interface. **On the server.** The template controller rendered the same 999 into the page it hands to search engines. That is not a limit anyone reaches on a healthy question, but it is a page of several megabytes for the ones that do, built on every crawl. Capped at 100, the size the list uses. Found on a forum with 26 years of archive, where one thread has 13,368 answers. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This was referenced Aug 24, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Two sides of the same limit, which is why they arrive together.
In the browser. The question detail page asked for
page_size: 999andnever asked again. A question with more answers than that simply ended: the
rest exist in the database and cannot be reached from the page. It now requests
page by page, like every other list in the interface.
On the server. The template controller renders the same 999 into the page
it hands to search engines — a page of several megabytes for such a question,
rebuilt on every crawl. Capped at 100, the size the list itself uses.
How it was found, and how common it is
On a forum with 26 years of archive, where one thread has 13,368 answers.
I want to be straight about the scope: this is not visible on a young instance,
and I could not reproduce it on
meta.answer.devbecause no thread there islong enough. The limit is hard-coded, though, so any instance that runs long
enough to pass 999 answers on a single question hits it — and when it does, the
answers are unreachable rather than slow.
Replaces #1573 and #1574, which are the same two changes as separate pull
requests.
🤖 Generated with Claude Code