perf(sql): geography GIST + covering index для analyze-пути Site Finder (157) #1334
No reviewers
Labels
No labels
admin
analytics
auth
automation
bug
business
chore
ci
compliance
data
data-moat
docs
duplicate
dx
enhancement
Fable 5 ревью
feedback/max
generative
GG-форсайт
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#1334
Loading…
Add table
Reference in a new issue
No description provided.
Delete branch "perf/analyze-hotpath-indexes"
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 (perf, Refs #70)
EXPLAIN ANALYZE на проде: горячий analyze-путь Site Finder делал Seq Scan на каждый запрос — фильтры по
X.geom::geography(метровый ST_DWithin) не могут использовать существующие GIST на плоскомgeom. 4 индекса:(geom::geography)+ 1 covering(project_name) INCLUDE(price_per_m2_rub, area_pd, is_sold).Test plan
Follow-up (вне scope, backend)
query obj_pricing сканирует ВСЕ objective_lots вместо ~245 ближних — пушдаун
domrf_obj_id IN (nearby)вparcels.pyдаст ещё ×10.Refs #70