feat(tradein/db): derived price-history trigger (avito/yandex) + last_seen_at deactivate index #1559

Merged
lekss361 merged 1 commit from feat/price-history-trigger-and-lastseen-index into main 2026-06-16 16:48:59 +00:00

1 commit

Author SHA1 Message Date
59d58cf931 feat(tradein/db): price-history trigger (116) + last_seen_at index (117)
All checks were successful
CI / openapi-codegen-check (push) Has been skipped
CI / changes (push) Successful in 7s
CI / backend-tests (push) Has been skipped
CI / frontend-tests (push) Has been skipped
CI / changes (pull_request) Successful in 7s
CI / backend-tests (pull_request) Has been skipped
CI / frontend-tests (pull_request) Has been skipped
CI / openapi-codegen-check (pull_request) Has been skipped
116: AFTER UPDATE OF price_rub trigger on listings writes derived
offer_price_history rows for avito/yandex; cian excluded to preserve
source-provided backfill (cian_price_history.py LEFT JOIN oph IS NULL guard).

117: partial composite index (source, last_seen_at) WHERE is_active to
accelerate deactivate_stale_listings seq-scan on ~39k rows.
2026-06-16 19:43:30 +03:00