Skip to content

Configurable parents of listing cards from documents - #39

Merged
paales merged 1 commit into
mainfrom
listing-parent-identities
Oct 20, 2026
Merged

paales merged 1 commit into
mainfrom
listing-parent-identities

Conversation

@deployyy-platform

Copy link
Copy Markdown
Contributor

Written by Claude Code:

ConfigurableProductFrontend answers getParentIdsByChild() from the parentIds of the page's card documents and the variant documents of its cards. Core's ProductIdentitiesExtender asks it for every simple product whose identities a card collects (Hyvä calls getIdentities() per card for its block cache), one catalog_product_super_link query each, also when the card's block cache hits. A product without such a document goes to core.

Measured on a Hyvä shop (107 815 products), warm block cache, document path:

page before after
category, 48 cards 54 queries 8
search 61 queries 13

catalog-storefront:parity:listing is identical on 5 of 5 pages. A check of 2000 random simple products against catalog_product_super_link gives the same parents for every product.

🤖 Generated with Claude Code

…s from the documents, so a category or search page on Hyvä runs no query per card for its cache tags: core's identities plugin asked the parents of every simple product a card tags, 46 queries on every render of a 48 card page, also when the block cache hit.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@paales
paales merged commit 4bbb801 into main Oct 20, 2026
8 checks passed
@paales
paales deleted the listing-parent-identities branch October 20, 2026 16:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant