perf(db): objective_lots district-price index (#70) + PII/perf audit (#79) #1325

Merged
bot-backend merged 1 commit from perf/objective-price-idx-pii-audit into main 2026-06-13 19:22:30 +00:00
Collaborator

#70 covering-index objective_lots (district,price_per_m2_rub) — analyze district-price был Bitmap Heap Scan 41k блоков (5.3s cold), теперь Index Only Scan (87ms verified). Требует VACUUM ANALYZE post-deploy. database-expert . #79 152-ФЗ PII grep-аудит чист (scrub/хеширование/redaction подтверждены) + audit-doc; остаток pilot_requests retention (рекомендация). Closes #70
Closes #79

#70 covering-index objective_lots (district,price_per_m2_rub) — analyze district-price был Bitmap Heap Scan 41k блоков (5.3s cold), теперь Index Only Scan (87ms verified). Требует VACUUM ANALYZE post-deploy. database-expert ✅. #79 152-ФЗ PII grep-аудит чист (scrub/хеширование/redaction подтверждены) + audit-doc; остаток pilot_requests retention (рекомендация). Closes #70 Closes #79
bot-backend added 1 commit 2026-06-13 19:09:16 +00:00
perf(db): covering-index objective_lots district-price (#70) + 152-ФЗ/perf audit docs (#70 #79)
All checks were successful
CI / changes (push) Successful in 7s
CI / changes (pull_request) Successful in 6s
CI / frontend-tests (push) Has been skipped
CI / frontend-tests (pull_request) Has been skipped
CI / openapi-codegen-check (push) Successful in 2m3s
CI / openapi-codegen-check (pull_request) Successful in 2m7s
CI / backend-tests (push) Successful in 8m55s
CI / backend-tests (pull_request) Successful in 8m58s
Deploy / changes (push) Successful in 6s
Deploy / build-frontend (push) Has been skipped
Deploy / build-backend (push) Successful in 29s
Deploy / build-worker (push) Successful in 29s
Deploy / deploy (push) Successful in 1m10s
11aa011d11
#70: EXPLAIN top-5 hot-path на prod — analyze district-price block по objective_lots
(1.12M) делал Bitmap Heap Scan ~41k блоков (cold 5.3s/warm 474ms), пробивая p95 ≤3с.
Partial covering-index (district, price_per_m2_rub) WHERE price_per_m2_rub IS NOT NULL →
Index Only Scan (verified scratch: 87ms, Heap Fetches 0). Требует VACUUM ANALYZE
objective_lots post-deploy (stale VM иначе глушит выигрыш). database-expert  verified.

#79: 152-ФЗ PII grep-аудит — plain-PII в логах НЕ найдено; Sentry scrub / PRINZIP-хеширование
/ LLM §19-redaction подтверждены. Остаточный риск: pilot_requests хранит сырые ПДн без
retention (рекомендация в docs). httpx DEBUG off (ops-инвариант).

Closes #70
Closes #79
bot-backend merged commit 11aa011d11 into main 2026-06-13 19:22:30 +00:00
bot-backend deleted branch perf/objective-price-idx-pii-audit 2026-06-13 19:22:31 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: lekss361/gendesign#1325
No description provided.