Repository navigation
Conversation
…rips: a category read alone brings its parents and children in the same follow-up read, the layered navigation takes the price step from the document of the filtered category, and a product without a request path takes its own rewrite from its document, so a category page asks the category store twice instead of four times and a product page asks the url rewrite store twice instead of six times. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
Written by Claude Code:
Fewer sequential OpenSearch round trips on rendered pages:
CategoryDocuments: a category read alone also reads its path and its children in one follow-up read. A category page asked for them one by one (getParentDesignCategory(),hasChildren()), each a round trip.PriceStepFromCategory(CategoryFrontend, sortOrder -10): the price step from the document on the filtered category model, beforePriceRangeStepFromDocumentreads that document from the store again.ProductUrlFromRequestPath: a document product withoutrequest_path(the product page, linked product rows) takes the rewrite whose only parameter is the id from itsurlRewrites, when no category applies. Core asked the url finder once per product.Measured on a Hyvä shop, document path, warm (Mage-OS profiler):
catalog-storefront:parity:listing5/5 identical;parity:detail27/28 identical, the configurable page differs only in the order of related products of equal position, which core also renders in varying order.🤖 Generated with Claude Code