Batched page hydration at a constant query count

FeatureBillingService
Shipped
August 8, 2026 at 5:09 PM UTC
Author
Kamo
Commit
1d25b5d

Parent titles, primary domain, the plan/market behind the entitlement and the subscription-catalog flag are each one batched IN (:ids) over the whole page, so a 100-row page costs the same six statements as a 1-row page. The test asserts that equality directly -- the implementation this replaces would score 6 against 600. The governing subscription is picked by EntitlementModeResolver, the same code that decided the row's mode, so the plan shown always belongs to the state shown. Queries go through EntityManager rather than new repository methods so kamo-shared-library, which every service depends on, does not have to change.

All changes

Like what you see shipping?

Every one of these updates lands in your workspace automatically. Start free and watch it grow week after week.

Start Free ForeverView Pricing