[Refactor] CoreDataManager fetch 로직 개편 및 모델 속성 수정#53
Merged
jihyeonjjang merged 3 commits intodevfrom Jun 13, 2025
Merged
Conversation
…방식으로 변경 - 기존 fetchAll 기반 NSFetchedResultsController 로직 제거 - fetch(), fetch(tag:), fetchRecommended() 등 개별 fetch 함수 구현 - fetchLiked(), fetchHistory() 함수 정리 및 predicate 기반 단순 fetch 방식으로 변경 - saveVideos에서 기존 fetchedObjects 접근 제거 → fetch() 기반 데이터 비교로 수정 - update 로직에 thumbnailURL 비교 추가 - apply 함수에 thumbnailURL 및 새로운 타임스탬프 로직 반영 - delete(by:) 로직 개선: predicate 기반 직접 fetch로 삭제 - NSFetchedResultsController를 재사용할 수 있도록 makeVideoFRC 메서드 분리 구현 - updateTagScores 내부 계산에서, 시청 시간을 받아오도록 수정
|
You've used up your 5 PR reviews for this month under the Korbit Starter Plan. You'll get 5 more reviews on June 22nd, 2025 or you can upgrade to Pro for unlimited PR reviews and enhanced features in your Korbit Console. |
kdn0325
approved these changes
Jun 13, 2025
| <attribute name="downloads" optional="YES" attributeType="Integer 64" defaultValueString="0" usesScalarValueType="YES"/> | ||
| <attribute name="id" attributeType="Integer 64" defaultValueString="0" usesScalarValueType="YES"/> | ||
| <attribute name="isLiked" optional="YES" attributeType="Boolean" defaultValueString="NO" usesScalarValueType="YES"/> | ||
| <attribute name="thumbnailURL" optional="YES" attributeType="String"/> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
변경 내용
FRCFactory 사용 예제