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.


Comments

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -