Skip to content

[HOTSPOT-297] 주간 AI 분석 리포트 Job1 구현 #2

Description

@HyeongseoShin

🎫 Jira 티켓 번호

HOTSPOT-297

📄 설명

Job1: 사용량 집계 및 연산 (Partitioning & Chunk) (설계 완료)

Step1: 대상자 선정 및 WeeklyReport row INSERT (Chunk)

  • Reader
    • ReportTarget 테이블 순회하며 receive_day = 오늘 요일 인 sub_id 전부 추출
  • Processor
    • WeeklyReport 생성 Dto로 변환
      • subId, weekStartDate, weekEndDate, createdDate, status = PENDING
      • (subId, weekStartDate) Unique Key 도입해서 Skip or Upsert
  • Writer
    • WeeklyReportBatch INSERT / UPSERT

⇒ Chunk (500 ~ 1000)
⇒ Partition (8 ~ 16)

✅ 작업할 내용

  • config
  • dto
  • job
  • partition
  • reader
  • processor
  • writer
  • support

🙋🏻 참고 자료

No response

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

feat새로운 기능 구현

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions