mirror of
https://github.com/Sea-Haven-Industries/shoc-backend.git
synced 2026-09-30 06:03:12 +00:00
1.7 KiB
1.7 KiB
Search Tier Decision — Fase 4
Data: 2026-06-24
Status: Provisório (dev) — aguardando Volume Discovery staging/prod
Tier confirmado
| Ambiente | Tier | Total WOs | Decisão |
|---|---|---|---|
| Dev local | S (provisório) | < 25k sintético | Implementar SQL filtros + paginação opcional |
| Staging | pendente | pendente acesso | Executar volume-discovery-report.md |
| Produção | pendente | pendente acesso | Executar queries read-only |
Estratégia por tier
| Tier | Volume | Estratégia advanced search |
|---|---|---|
| S | < 25k | SQL filtros compostos + paginação default 50, max 100 |
| M | 25k–250k | Paginação obrigatória + índices covering |
| L | 250k–1M | Spike full-text SQL Server — não implementar sem spike |
| XL | > 1M | Documentar ARB; search externo — não implementar |
Implementação atual (Tier S)
WorkOrderBoardSearchFilter— filtro textual compartilhado (board + advanced)WorkOrderAdvancedSearchDataService— query composta comCountAsync+Skip/Take- Índices Phase 4:
SiteCode,InternalWONumber,LifecycleStatus+ScheduledDate - Min 2 caracteres em
searchpara evitar full-table scan
Próximos passos (gate staging)
- Executar
scripts/volume-discovery.ps1contra staging read-only - Preencher tabela §3 do volume report
- Atualizar este documento com tier real
- Repetir load test k6 em staging; ajustar
pageSizemax se tier = M
Referências
- volume-discovery-report.md
- phase-4/README.md
- Roadmap §10, §12 Fase 4