gendesign/_wt-cadval/data/sql/37_cleanup_redundant.sql
bot-backend 542ff1c9ca docs(tradein/domclick): два комментария описывали пул, которого нет с миграции 253
Оба места утверждали, что у Домклика один выделенный резидентный прокси и
пула нет. Это перестало быть правдой ещё в #2800 (миграция 253 сняла
резервацию узла), но текст остался — и именно на него опирался тикет #3189,
поставленный под «калибровку» ограничения, которого не существует.
Свип к тому же ходит через пул давно (serp.py:359), а бэкфилл подключён к
нему в PR #3222.

Заодно докстринг называл не тот ограничитель: свип кладёт не счётчик
провалов lease, а break по первому DomClickBlockedError (#2854) — до
ротации дело не доходит ни при каком счётчике, отсюда buckets_completed=0.

Только комментарии, поведение не меняется. Миграция 175 уже применена, а
_schema_migrations трекает по имени файла без checksum — правка текста
её не перезапустит.
2026-08-29 18:57:25 +03:00

19 lines
1,012 B
SQL
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

-- Drop tables fully superseded by domrf_realization (loaded 27.04.2026).
-- Coverage check confirmed:
-- • domrf_sold_out_by_year (6 rows, RF-only) ⊂
-- domrf_realization WHERE endpoint_type='ready_year' AND region_code=-1
-- (+ × 89 regions in same source). Values match exactly: e.g. 2027 sold 30%,
-- 2028 sold 17%, 2029 sold 9%. API data is more complete (PDF had nulls).
-- • domrf_sold_out_by_progress (6 rows, RF-only) ⊂
-- domrf_realization WHERE endpoint_type='housing' AND region_code=-1
-- (+ × 89 regions). Same buckets: not_open / до 20% / ... / 80+.
--
-- domrf_sold_out (9 rows) is KEPT — has unique attracted_funds_mln_rub column
-- not present in the API response.
--
-- Run manually:
-- docker run --rm -e PGPASSWORD=... postgres:16-alpine psql \
-- -h host.docker.internal -p 15432 -U gendesign -d gendesign \
-- -f data/sql/37_cleanup_redundant.sql
DROP TABLE IF EXISTS domrf_sold_out_by_year;
DROP TABLE IF EXISTS domrf_sold_out_by_progress;