UPGRADE YOUR SKILLS: Learn advanced Swift and SwiftUI on Hacking with Swift+! >>

Thoughts on CareData faulting

Forums > SwiftUI

I have seen a lot of posts here and in blogs suggeting ways to implement an MVVM architecture with CoreData as the backing store.

Many (most) of them concern me, becuseit seems they defeat the point of CoreData's sfaulting system to impliment a sort of Lazy loading scheme. For example if I load an attribute into an array, unless I impliment a Lazy load system on it, it would seem I am Forcing CoreData to fault every row.

It seems that ultimately any strorage between CoreData and the View is going to result in having to be careful to not defeat CoreData's optimizations. So, my thought is to impliment my View Model in CoreData itself, and not try to recreate all that.

Thoughts?

2      

Hacking with Swift is sponsored by RevenueCat

SPONSORED Take the pain out of configuring and testing your paywalls. RevenueCat's Paywalls allow you to remotely configure your entire paywall view without any code changes or app updates.

Learn more here

Sponsor Hacking with Swift and reach the world's largest Swift community!

Archived topic

This topic has been closed due to inactivity, so you can't reply. Please create a new topic if you need to.

All interactions here are governed by our code of conduct.

 
Unknown user

You are not logged in

Log in or create account
 

Link copied to your pasteboard.