【发布时间】:2020-05-09 19:10:59
【问题描述】:
我们开始将 Google Cloud Firestore 与 Spring Cloud GCP 一起使用。
我们正在考虑为每个文档添加一个 UUID 作为文档 ID——主要是因为我们已经习惯了使用 SQL 数据库。
但是,Firestore 中似乎没有对 UUID 的原生支持。在 Firestore 中使用 UUID 作为文档 ID 有什么优点或缺点吗?
【问题讨论】:
-
您预计会出现什么问题?很难说哪种答案会有所帮助。
标签: firebase google-cloud-platform google-cloud-firestore nosql uuid