ios - Save data in two persistent stores -
i having app there search feature network request. uses same model framework entire app. this means when user searches need create managed objects found data, save them , display them. messes old records user recent data. i ideally save managed objects found in search in separate in-memory persistent store doesn't make disorder in main data. i haven't done before best way approach it? thank you! as has been suggested @stevesliva, not need involve complexities of maintaining multiple partially in-memory stores. way go here create child context , fetch online data context. once not need data more, discard context. if decide save downloaded data, can "push" changes main context via save: . @ point make necessary adjustments data fit user data. depending on model, 1 feasible solution create attribute on 1 of entities marks linked objects distinct user created objects.