MySql、Sqlite、Wix;意见、建议、想法

发布于 2024-09-26 22:42:34 字数 711 浏览 1 评论 0原文

目前我正在开发一个项目,该项目使用基于服务器的MySql来保存他们制造的设备的一些测试结果,并且程序运行良好,并且在每个测试结束时它使用保存的数据来生成带有结果的报告。我的客户希望在技术人员的笔记本电脑中使用相同的程序,以便他们可以访问各个站点,但无法连接到服务器。目前没有要求这些需要同步。但有时我的客户会说他需要它。所以我必须牢记这一点。

我和同事们讨论过这个问题,他们也提出了不同的想法。

想法 1 使用小型配置工具来确定用户想要哪个版本,如果用户在网络外运行,则使用 SQLite 作为本地数据库。

问题:

  • 我必须使用不同的代码,因为 SQLite 和 MySql 函数不同,例如日期函数和日期函数。等等。
  • 当谈到同步时,它们会受到任何限制。

**想法2** 根据用户情况确定需要安装基于服务器的版本或本地版本后,在主机中安装MySql。

问题&疑问:

  • MySql 会减慢主机速度吗,因为笔记本电脑实际上是工作站。他们不需要 MySql 服务一直运行?

  • 可以编写 Wix 脚本来安装 MySql 并创建表,还是需要始终手动进行 PC 到 PC 的操作。如果有的话,有没有例子。

任何想法、意见建议都将不胜感激。

干杯!

Currently I am working on a project, which uses a server base MySql to save some test results from equipments they make, and program works fine and at each test end it uses saved data to generate report with results. My client wants to use the same program in technicians laptops so they can visit various sites but there is no connectivity to the server. For the moment there is no requirement these needs to synchronise. But there will be time my client say he needs it. So I have to do it keep that in mind.

I have discussed this with my colleagues and they also come up with different ideas.

Idea 1 Use a small config tool to determine which version user wants and if user runs outside the network use a SQLite as a local database.

Problems :

  • I have to use different codes as SQLite and MySql functions are different such as Date Functions & etc.
  • When its come to Synchronise will their be any limitations.

** Idea 2** Install MySql in the host computer after determining from users weather it needs to be install server based or local version.

Problems & Doubts :

  • Will MySql slow the host computers because laptop computers actually technicions work stations. They do not need MySql services to run all time time ?

  • Can Wix Scripts written to install MySql and create the tables or is it need to manually all the time for the pc to pc. If so any examples.

Any ideas, opinions suggestions are greatly appreciated.

Cheers !

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

阪姬 2024-10-03 22:42:34

WiX 仅内置对 MS Sql Server 的支持。我不知道你使用什么来开发你的解决方案,但如果你使用.NET并选择使用Sql Server Compact Edition,你应该能够使用MS同步服务来提供相当好的离线数据输入和同步功能,同时也大大提高了性能。使用 WiX 简化您的部署过程,因为您实际上不必执行 sql 脚本来创建数据库。

WiX only has built in support for MS Sql Server. I have no idea what youare using to develop your solution but if your doing .NET and choose to go with Sql Server Compact Edition you should be able to use MS Sync Services to provide for a pretty good offline data input and sync capability while also greatly simplifying your deployment story with WiX as you don't really have to execute sql scripts to create your databases.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文