为下面的要求建议最佳解决方案 [英] Suggest the best solution for my requirement below

查看:95
本文介绍了为下面的要求建议最佳解决方案的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,



我使用C#在Windows中创建扫描应用程序。此应用程序的主要任务是从在线SQL数据库获取数据到本地数据库(使用XML文件作为本地数据库)。我需要从在线数据库中只下载一个表,其中包含2个字段,即(票证ID,扫描状态)。记录下载到本地XML文件后,我在扫描票证时将扫描状态 False更新为,然后将扫描票证数据上传到在线数据库。



我已经使用XML文件完成了这项工作,但问题是下载记录(从在线到XML)和上传(从XML到在线数据库)需要更多时间因为有数以千计的记录



加载时间问题在这里。所以我正在考虑使用 SQL lite或SQL Compact CE 作为本地数据库而不是XML来加快执行速度。



请建议我我的需求的最佳解决方案

Hi all,

I am created scanning application in windows using C#. Main task of this application is to get data from online SQL database to local database (using XML file as local DB).I need to get download only one table from online DB which having 2 fields i.e (Ticket ID, Scanning Status). After records downloaded to local XML file, i am updating Scanning Status from False to True when ticket is scanned and then uploading Scanned tickets data to online database.

I was already did this work using XML files , but here issue is it took more time for downloading records (from Online to XML) and uploading (from XML to Online Database) because having thousands of records.

Loading time is issue here . so i am thinking about to use SQL lite or SQL Compact CE as local database instead of XML for faster Execution.

Please suggest me the best solution for my requirement

推荐答案

1.由于其主要特性,您应该将SQLite用于本地数据库:用于简单CRUD操作的最快数据库之一,无需安装需要(只是一个简单的副本),易于使用.NET。



2.要通过互联网传输数据,你应该使用带有net.tcp绑定的WCF,因为在.NET应用程序中通过Internet传输数据的最快方法;您还可以使用SSL保护数据。

这是一篇关于这个主题的文章:使用Mutual WCF中的SSL身份验证 [ ^ ]



3.当从数据库读取数据时,在WCF服务和WCF客户端之间,你应该使用分页 - 所以你应该阅读并发送最多700条记录的页面。
1.You should use SQLite for local database because of its main features: one of the fastest database for simple CRUD operations, no installation is required (just a simple copy), easy to use from .NET.

2.For transferring data over the internet you should use WCF with net.tcp binding because is the fastest way for transferring data over the internet in .NET application; you have also options to secure your data by using SSL.
Here is an article about this subject: Use Mutual SSL Authentication in WCF[^]

3.When transferring the data read from database, between WCF service and WCF client, you should use pagination - so you should read and send pages of maximum 700 records.


这篇关于为下面的要求建议最佳解决方案的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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