移动 Couchbase 的启动时间是否变得不切实际?
我刚刚开始探索 Couchbase Mobile for Android,并且给我留下了深刻的印象进展如何。如果能有一个 Android SQLite 的替代品就好了,因为它会涉及更少的样板代码。
到目前为止我遇到的最大的问题是CouchDB的启动时间。我创建了一个简单的应用程序,它只启动数据库并记录启动时间。应用程序第一次运行时,从启动应用程序的调用到指示 CouchDB 已准备就绪的回调(在 Samsung Captivate 上)需要花费10 秒时间。如果应用程序被终止并重新启动,这个时间会减少到 5 秒,这还不错。 我担心这会影响可用性,即使正在显示启动屏幕和/或进度对话框。
我想知道人们如何处理这么长的启动时间。 它对可用性有很大影响吗?有没有办法让它易于管理?
I have just started exploring Couchbase Mobile for Android and have been impressed with how far it has progressed. It would be nice to have an alternative to Android's SQLite which would involve less boilerplate code.
The biggest issue I have experienced so far is the startup time of CouchDB. I created a simple app which just starts the database and logs the startup time. The very first time the app is run, it takes 10 seconds between the call to start it and the callback indicating CouchDB is ready (on a Samsung Captivate). If the app is killed and restarted, this time reduces to 5 seconds which isn't too bad. I am concerned that this will impact usability, even if a splash screen and/or progress dialog is being displayed.
I would like to know how people are handling this long startup time. Does it have a big impact on usability? Is there a way to make it manageable?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
使用
TouchDBCouchbase Lite 而不是 Couchbase Mobile。它将启动时间从 5-10 秒缩短到 100 毫秒。请阅读下面引用的 Why-TouchDB 文档,了解权衡(它不是完全替代)和更详细的信息。这里是来自 https://github.com 的启动时间相关信息的释义/couchbaselabs/TouchDB-iOS/wiki/Why-TouchDB%3F
编辑:TouchDB 已更名为 Couchbase Lite
Use
TouchDBCouchbase Lite instead of Couchbase Mobile. It will cut the startup time from 5-10 seconds to 100 miliseconds. Read the Why-TouchDB document referenced below for the trade offs (It is not an exact replacement) and more detailed information.Here a paraphrase of the startup time related information from https://github.com/couchbaselabs/TouchDB-iOS/wiki/Why-TouchDB%3F
Edit: TouchDB has been renamed Couchbase Lite
您使用的是最新版本吗?他们最近大大缩短了安装时间。
Are you using the latest version? They have recently reduced the install time by a significant amount.
使用 Couchbase 的其他人的看法是,我看到的时间可能有点高,并且让用户等待它加载并不是不合理的。有关移动 Couchbase 列表的进一步讨论。
The sentiment from others using Couchbase is that the times I am seeing might be slightly high and not unreasonable to have a user wait for it to load. There is further discussion on the Mobile Couchbase list.