Qua*_*Van 3 google-cloud-datastore google-cloud-platform google-cloud-functions
我想看看仅使用 Cloud Functions 与 Datastore 交互是否可行。
有没有办法创建复合索引(比如 index.yaml仅使用 Cloud Functions)?所以只有 Cloud Functions 代码,没有 App Engine 代码。
谢谢!
您只能通过命令行工具 ( )创建复合索引定义gcloud datastore create-indexes。这是一项管理功能,不应成为您应用程序的常规部分。您可以在 Cloud Console 中使用浏览器内的“Cloud Shell”来执行此一次性步骤。
创建它们后,您的 Cloud Functions 代码编写的任何 Cloud Datastore 实体都将添加到复合索引中。
| 归档时间: |
|
| 查看次数: |
301 次 |
| 最近记录: |