transceiver-db/sql/109-fix-nightly-matcher-time-window.sql
Rene Fichtmueller 98b241f462 feat: implement Flexoptix reference matching overhaul
- sql/108: normalize form_factor across all vendors (SFP-Plus → SFP+, etc.)
  and round speed_gbps for consistent matching
- sql/109: document 30→90 day matcher window change
- robots/catalog-reconcile.ts: new bulk-reconcile robot — matches all
  Flexoptix products against all competitors without 30-day time limit
- scheduler.ts: register catalog:reconcile job (monthly + on-demand),
  fix nightly matcher 30→90 day window, UPPER() form_factor matching,
  ROUND() speed_gbps matching

Fixes: ATGBICS/NADDOD/10Gtek/ShopFiber24 had 0 Flexoptix equivalences
due to stale price_observations being filtered out. Expected coverage
improvement: 22% → 45-60% after first reconcile run.
2026-05-13 16:55:45 +02:00

11 lines
625 B
SQL

-- Migration 109: Dokumentiert den 30→90 Tage Bugfix im Nightly-Matcher
-- Dieser SQL ist reine Dokumentation — die eigentliche Änderung ist in scheduler.ts
COMMENT ON TABLE transceiver_equivalences IS
'Flexoptix-zentrierter Equivalenz-Graph: flexoptix_id = Referenz-Anker,
competitor_id = äquivalentes Konkurrenzprodukt.
Status: pending (review nötig), auto_approved (Confidence ≥0.73),
approved (manuell), rejected (explizit ausgeschlossen).
KRITISCH: Matcher nutzt 90-Tage-Fenster (war: 30 Tage) damit Vendors
mit seltener Preisbeobachtung (ATGBICS/NADDOD/10Gtek/ShopFiber24) gefunden werden.';