Skip to content

[#344] Firestore의 undo 작업에 대해 DB I/O 빈도수를 개선한다#346

Merged
opficdev merged 15 commits intodevelopfrom
refactor/#344-PushNotification
Apr 1, 2026
Merged

[#344] Firestore의 undo 작업에 대해 DB I/O 빈도수를 개선한다#346
opficdev merged 15 commits intodevelopfrom
refactor/#344-PushNotification

Conversation

@opficdev
Copy link
Copy Markdown
Owner

@opficdev opficdev commented Apr 1, 2026

@opficdev opficdev self-assigned this Apr 1, 2026
@opficdev opficdev added the qa TestFlight에 배포 label Apr 1, 2026
Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

이번 풀 요청은 Todo, WebPage, PushNotification에 soft delete 기능을 도입하고, 이를 주기적으로 정리하는 클린업 함수와 Firestore 경로 관리 유틸리티를 추가했습니다. 주요 피드백으로, 클린업 함수에서 사용하는 collectionGroup 쿼리에 필요한 COLLECTION_GROUP 스코프 인덱스가 firestore.index.json에 누락되어 있어 런타임 에러가 발생할 위험이 지적되었습니다. 특히 isDeleted 필드를 포함한 복합 인덱스 구성이 필요합니다.

Comment on lines +82 to 84
.where("isDeleted", "==", true)
.orderBy(admin.firestore.FieldPath.documentId())
.limit(QUERY_BATCH_SIZE);
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

high

collectionGroup("todoLists").where("isDeleted", "==", true).orderBy(FieldPath.documentId()) 쿼리는 isDeleted__name__ 필드에 대한 COLLECTION_GROUP 스코프의 복합 인덱스를 필요로 합니다. 현재 firestore.index.json에는 해당 조건의 인덱스가 누락되어 있어 스케줄러 실행 시 에러가 발생할 가능성이 높습니다.

@opficdev opficdev merged commit e1b9e6a into develop Apr 1, 2026
1 check passed
@opficdev opficdev deleted the refactor/#344-PushNotification branch April 1, 2026 18:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

qa TestFlight에 배포

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Firestore의 undo 작업에 대해 DB I/O 빈도수를 개선한다

1 participant