Migrating from Properties to Storage

On a happy note, I can cautiously report that the migration of data persistence in my watch app from Applicaton.Properties to Applicaton.Storage has been relatively quick and painless and remarkably successful.

I implemented persistence early on, in what turned out to be a fruitless attempt, to save state data over an application crash on my vahr app.

I have since extended its use to retain useful user preferences and, since the recent release of CIQ 2.4.9 , I am now able to combine these objectives using Storage on the vahr.

I say "cautiously" as I haven't had time to fully test the app in the field.

  • I found the overhead of dictionaries was too great, and switched to multiple arrays with corresponding entries instead.
  • Former Member
    Former Member over 6 years ago
    If you stored everything in a single dictionary record in Application.Storage you would essentially be emulating the old system. If you don't need all of your stored elements to be available for "random access", then you can reduce your overhead by leaving some elements on disk. Arrays will be more cumbersome to use, but can have significantly less overhead than a Dictionary.