问题
Local database is now built into Windows Phone 7.5 Mango. I'm considering a scenario of storing a few unrelated collections with data. Using the local database is pretty straightforward, while using Isolated storage requires a bit more custom development. There are also some alternative solutions like FileDb, mentioned in a pre-mango discussion here https://stackoverflow.com/a/6954250/346995
What would be the best solution of local database/Isolated storage with regards to simplicity and performance? Would local database fit most scenarios?
回答1:
Unless you are going to be storing relational data (and it sounds like you aren't) I would suggest using the IsoStore. It isn't really that difficult to use.
Now, as far as performance. Reading the disk on the phone is not going to be fast. That being said, any solution you use is going to be saved to disk in the end; so I don't think you will notice much of a difference if you go with DB or IsoStore.
Isolated Storage Overview
Isolated Storage Best Practices
31 Days of Mango: Isolated Storage
Using Isolated Storage in Windows Phone 7
来源:https://stackoverflow.com/questions/8416058/use-built-in-local-database-or-isolated-storage