【发布时间】:2019-01-08 11:19:03
【问题描述】:
我正在考虑从实时 Ratabase 迁移到 Cloud Firestore,并想知道如何为我的本地化内容正确设置数据结构。
这是它在 RTDB 中的结构:
articles
en-US
article_01
de-DE
article_01
在 Firestore 中,我会创建这样的东西吗?
Collection: articles
document: article_01
然后将article_01的所有数据嵌套在'en-US'和'de-DE'两个map中?
不确定是否有更好的方法在 Firestore 中构建本地化数据?
感谢您的帮助:)
【问题讨论】:
标签: java android firebase google-cloud-firestore