feat(db): GiST по (geom::geography) на houses — матчинг идёт по индексу (#2997) #3020
No reviewers
Labels
No labels
Fable 5 ревью
GG-форсайт
admin
analytics
auth
automation
bug
business
chore
ci
compliance
data
data-moat
docs
duplicate
dx
enhancement
feedback/max
generative
needs-discussion
needs-human
observability
pause-bots
performance
priority/p0
priority/p1
priority/p2
priority/p3
scope/backend
scope/db
scope/devops
scope/frontend
scope/qa
scrapers
security
site-finder
stage/1
stage/2
status/blocked
status/done
status/needs-analysis
status/needs-fix
status/qa
status/ready
status/review
status/wip
tech-debt
tradein
ux
week ревью 1
wontfix
ИРД
вторичка
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: lekss361/gendesign#3020
Loading…
Add table
Reference in a new issue
No description provided.
Delete branch "feat/2997-houses-geog-index"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
270_houses_geog_gist_idx.sql:CREATE INDEX CONCURRENTLY houses_geog_gist_idx ON houses USING gist ((geom::geography))— подST_DWithin(geom::geography, …)матчинга (matching/houses.py:300/352/554). Сейчас планировщик берётhouses_geom_idxтолько как bitmap поgeom IS NOT NULLи фильтрует все ~9.4k строк.Bitmap Index Scan on houses_geom_idx · Index Cond: (geom IS NOT NULL) · Rows Removed by Filter: 4718 · Execution Time: 70.7 ms;pg_stat_statementsза 13 ч: 66 × 39.9 мс + 5 × 53.3 мс.houses_geom_idxи дубльlistings_geom_idx: вpg_stat_statementsнашёлся живой потребительlistings.geomкак geometry (ST_DWithin(cb.geom, l.geom, …)в сшивке сcad_buildings_local) — постановка «потребителей нет» неполная, дроп требует отдельного разбора. Напишу в issue.Test plan
scripts/check-migration-lock-timeout.py✓;test_migration_numbering.py3 passed (270 — следующий после 269 на origin/main).\di houses_geog_gist_idxвалиден; EXPLAIN ANALYZE того же запроса —Index Scan using houses_geog_gist_idx, время в единицах мс; в комментарии к #2997 до/после.Refs #2997