fix: notification data provider not set fetch batch size issue

This commit is contained in:
CMK 2021-07-12 19:20:00 +08:00
parent f99f25bfdb
commit 2e4c1c81ed
1 changed files with 1 additions and 0 deletions

View File

@ -75,6 +75,7 @@ final class NotificationViewModel: NSObject {
self.fetchedResultsController = {
let fetchRequest = MastodonNotification.sortedFetchRequest
fetchRequest.returnsObjectsAsFaults = false
fetchRequest.fetchBatchSize = 10
fetchRequest.relationshipKeyPathsForPrefetching = [#keyPath(MastodonNotification.status), #keyPath(MastodonNotification.account)]
let controller = NSFetchedResultsController(
fetchRequest: fetchRequest,