# ADR-002: Product Catalog Architecture at 50M Scale ## Context Catalog must support 50,000,000 products with dynamic attributes and rapid filtering. ## Decision Use **26-character ULID primary keys** across all catalog entities (`products`, `product_variants`, `variant_attributes`). Enforce **Keyset Cursor Pagination** (`WHERE (created_at, product_id) < (...) ORDER BY created_at DESC, product_id DESC LIMIT 50`) on all listing endpoints to eliminate $O(N)$ SQL offset scans.