dongyan6503 2019-04-29 19:19
浏览 38
已采纳

有什么方法可以在Cloud Firestore的(Go)代码中创建索引豁免?

The GoDoc doesn't seem to support this feature. https://godoc.org/cloud.google.com/go/firestore

I only want to index very few fields, and it's tedious to manually add index exemptions across multiple environments.

Is there anyway to do this in a more automated fashion? Will this feature be added to the Go API in the future?

I know this might come to Terraform in the future (https://github.com/terraform-providers/terraform-provider-google/issues/3305).

  • 写回答

1条回答 默认 最新

  • doubao7287 2019-04-29 19:36
    关注

    This feature is not yet supported in the Go client, but support for the Cloud Firestore Admin API was recently added to the Node.js and Java client libraries:

    I suspect they will add this feature to the Go client library soon, but I encourage you to also open a feature request for the Go client library.

    You can also manage your indexes using the gcloud CLI: gcloud beta firestore indexes fields update

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?