【发布时间】:2016-10-10 02:21:30
【问题描述】:
在使用 Sync Gateway 与 Couchbase Server 同步时,Couchbase Lite 如何处理 Ottoman's ref 字段?
试图让自己熟悉 Couchbase,在观看和阅读了 Couchbase Server 和 Couchbase Lite 组合(This video、this tutorial、and official docs)之后,我不明白 Lite 如何反映服务器中定义的数据模型.
在我看来,Lite 和 Server 不太相似,尽管它们都代表 NoSQL 数据库。您以不同的方式定义、存储和处理数据 - 看起来 - 不同的方式。尽管如此,同步网关仍然允许 Lite 与服务器同步。
主要问题来了 - 在基于 Ottoman 的服务器 (check Model References here) 中定义的 ref 字段如何在使用 Sync Gateway 同步时反映在 Lite 中?
如果我只是理解 refs 或同步的概念完全错误,请纠正我。
【问题讨论】:
标签: node.js couchbase couchbase-lite couchbase-sync-gateway couchbase-ottoman