在 Cloud Firestore 中存储许多小文件?

Storing many small files in Cloud Firestore?

我有一个应用程序,其中 Google Cloud Storage 中存储了数千个小文件,并且我在 Firebase 实时数据库中有一百万个元数据小记录。

当我在 Firebase 控制台中将数据库切换到 Cloud Firestore beta 时,它警告我 Cloud Storage 将被禁用: "Enabling Cloud Firestore Beta will preclude you from using Cloud Datastore with this project, notably from the associated App Engine app."

所以我必须将文件移动到 Cloud Firestore?我没有在 Google 中看到任何关于在 Cloud Firestore 中存储文件的示例?然后将它们存储为 Base64 字符串还是什么?

云存储!=云数据存储

Cloud Datastore 是一个 NoSQL 数据库,已经存在了很长一段时间,在许多方面与 Firestore 非常相似。它们不能并行使用的原因可能是它们实际上以某种方式使用相同的后端。

Cloud Storage 用于存储任意文件,完全不受您使用 Firestore 的影响。