ES /docs

Api::V1::SitetracksController#captures (avg 13190ms, max 13190ms)

State: e49dced0-5cfe-4d49-a823-9abb88cbcd67

Progress#

Phase Status Timestamp
Analyze done 2026-07-09T00:00:00Z
Plan done 2026-07-09T00:05:00Z
Jira done 2026-07-09T00:10:00Z
Prepare done 2026-07-09T00:15:00Z
Implement: tesla done 2026-07-09T00:20:00Z
Validate done 2026-07-09T00:25:00Z
PR done 2026-07-09T00:30:00Z
Reflection done 2026-07-09T00:35:00Z

Decisions#

  • 사용자 선택 fix: 단기 개선 (1주 이내). RCA 의 단기 개선은 두 항목 (repository preload / serializer sparse-fieldsets 최적화) 이지만, 카테고리 메모리 가이드에 따라 primary(preload) 1개만 이번 PR 에 포함하고 serializer 리팩터는 별도 작업으로 분리하여 리뷰 부담을 최소화한다.
  • _team / _user / _facility 등은 ApplicationRecord.belongs_to 오버라이드에서 fetch_cache (Rails.cache) 로 정의되어 있어 AR preload 로는 이들 캐시 hit 를 직접 가속하지 않는다. 다만 params.fields 에 요청된 record, level, floorplan 은 캐시 miss 시 실제 AR association 접근으로 fall through 하므로 preload 가 유의미하다. 또한 has_many :captures, through: :associated_captures 자체가 캡처 로드 시 JOIN 을 유발하므로 명시적 preload 로 후속 lazy load 를 안정화한다.