在服务器数据库与本地数据库上搜索 [英] Search on server database vs local database
问题描述
我最近开始为 android 开发,并且我阅读了 SQLite.
I recently started developing for android, and i read about SQLite.
听起来在设备本身而不是在服务器上搜索要快得多,因为您可以节省连接和传输的时间.真的是这样吗?还是我应该继续在服务器上进行搜索?
It sounds like it is much faster to search on the device itself, instead on the server, since you save the time of the connections and transfers. is it really so? or should i keep doing my searches on the server?
推荐答案
如果可以将其保留在本地,那么您应该将其保留在本地.
互联网连接速度慢或没有互联网连接的人在使用您的应用时可能会遇到一些问题.
If it's possible to keep it local then you should keep it local.
People with slow or no internet connections could have some troubles using your app.
如果您的本地数据库需要数据,那么您可以设置一个服务,在后台从服务器下载数据,而用户不会注意到任何事情.
If your local database needs data then you can set up a service which downloads data from the server in the background without the user noticing anything.
这篇关于在服务器数据库与本地数据库上搜索的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!