选择移动应用程序的数据库的最佳做法 [英] Best practice selecting database for mobile app

查看:97
本文介绍了选择移动应用程序的数据库的最佳做法的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所以,我对于移动应用开发是相当新的。目前正在为移动应用程序制作项目文档,我想要了解应该使用哪种数据库解决方案。

So, I am fairly new to mobile app developing. Are currently making project documents for a mobile app, and I want some input on what database solution I should use.

1)移动应用 - >仅在线一个数据库

1) mobile app -> online only -> talking to a database

2)我有几个网络服务器启动并运行(mysql主要),可以使用?

2) I Have several webservers up and running (mysql mostly), possible to use?

所以我的问题很简单:)我应该使用我的移动应用程序数据库的什么解决方案。
- 在服务器上设置mysql数据库?
- 使用某种基于云的解决方案?
- 任何API考量?

So my question is simple :) What solution should I use for my mobile app database. - Setup a mysql database on a server? - Use some kind of cloud based solution? - Any API considurations?


  • 需要是android和ios的最佳实践。

任何和所有建议都非常感谢!谢谢大家!您是AWESOME!

Any and all suggestions is much appreciated! Thanks all! You are AWESOME!

推荐答案

Tom - 如果您需要数据可离线访问但没有互联网连接,那么您应该使用SQLITE数据库作为android / ios的一部分。

Tom - If you need data to be available offline without internet connectivity then you should you SQLITE database which comes as part of android/ios.

如果您的应用程序将数据保存在服务器上,而其他门户或其他设备/ server和mysql数据库。

If your app saves the data on server which in turn is used by other portal or other devices (sharing) then consider storing data via web/server and mysql database.

因此,这取决于使用和共享的要求。在本地存储数据有很多好处,因为它更快,无需网络,数据始终可用,并且不使用网络也增加了电池寿命。

So really it depends on the usage and sharing requirements. Storing data locally has much benefit because it is faster, no network required, data always available, and not using network also increases battery life..

这篇关于选择移动应用程序的数据库的最佳做法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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