fix: notification data provider not set fetch batch size issue
This commit is contained in:
parent
f99f25bfdb
commit
2e4c1c81ed
|
@ -75,6 +75,7 @@ final class NotificationViewModel: NSObject {
|
||||||
self.fetchedResultsController = {
|
self.fetchedResultsController = {
|
||||||
let fetchRequest = MastodonNotification.sortedFetchRequest
|
let fetchRequest = MastodonNotification.sortedFetchRequest
|
||||||
fetchRequest.returnsObjectsAsFaults = false
|
fetchRequest.returnsObjectsAsFaults = false
|
||||||
|
fetchRequest.fetchBatchSize = 10
|
||||||
fetchRequest.relationshipKeyPathsForPrefetching = [#keyPath(MastodonNotification.status), #keyPath(MastodonNotification.account)]
|
fetchRequest.relationshipKeyPathsForPrefetching = [#keyPath(MastodonNotification.status), #keyPath(MastodonNotification.account)]
|
||||||
let controller = NSFetchedResultsController(
|
let controller = NSFetchedResultsController(
|
||||||
fetchRequest: fetchRequest,
|
fetchRequest: fetchRequest,
|
||||||
|
|
Loading…
Reference in New Issue