Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 89864

Best practices for persisting data

$
0
0

Folks, my app has a rather complex object model. A typical data feed is about 350k of JSON which I deserialize into my objects. That works great.

What's the best way to save that onto the device? Saving to the file system everytime the data changes? Is that CPU intensive and/or slow? Should the data only be saved when the user clicks a 'save' button? Or on a timer event perhaps every 10 minutes?

ie. what are some best practices for this sort of thing?

I'm also having a 'sync' button that will check the server for a newer version of the data. Should I 'roll my own' sync logic or is there some low-hanging fruit components for synchronization?

(I'm new to XF being a refuge from HTML5 Hell)


Viewing all articles
Browse latest Browse all 89864

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>