[UWP] [XAML]哪个是快速App本地存储或SQLite DB? [英] [UWP] [XAML] Which is fast App local storage or SQLite DB ?

查看:94
本文介绍了[UWP] [XAML]哪个是快速App本地存储或SQLite DB?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好

我正在制作UWP应用程序,其中需要解析具有多个层的json并需要将其存储到App存储(App.StorageFolder或SQLite DB)中。

I am making UWP app, Where need to parse a json with multiple layers and need to store it into App storage (App.StorageFolder or SQLite DB).

所以我想知道我需要使用哪个来保存数据作为JSON,我有2个选项 -

So I want to know which I need to use for saving data as JSON, I have 2 options -

1。我应该直接使用JSON创建一个txt文件并将其保存到App.StorageFolder中并从中读取以进行显示。

1. Shall I directly make a txt file with JSON and save it into App.StorageFolder and read from same for displaying.

2。我应该为它创建一个SQLite数据库然后保存它然后读取显示。 

2. Shall I create a SQLite DB for same and save it then read for displaying. 

这是快速正确的方法来做同样的事情?

Which is fast and right way to do the same?

sandeep chauhan

sandeep chauhan

推荐答案

Hi
sandeep chauhan,


这取决于许多方面,如json数据的大小或哪个操作。


< span style ="font-size:10.5pt; font-family:'Segoe UI',sans-serif;颜色:#454545">我的建议是你可以使用不同大小的json数据对此进行测试。这将使你更清楚地了解这两种方式之间的不同表现。



最好的问候,


Roy


这篇关于[UWP] [XAML]哪个是快速App本地存储或SQLite DB?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆