Google 云数据存储:CI/CD 个文件,共 index.yaml 个文件

Google Cloud Datastore: CI/CD of index.yaml file

Google Cloud Datastore 需要使用 index.yaml 进行更新,以便它可以正确索引其数据。

我正在尝试找出在 Datastore 上建立 CI/CD 索引的正确方法,因为我针对模拟器添加了新功能,我注意到 index.yaml 文件会相应更新。

如果我将 index.yaml 作为我的 CI/CD 流程的一部分并在每次部署中包含 运行 它是否会对性能产生任何影响,即使索引文件没有更改.

或者我们应该 运行 只有当文件发生变化时才应该这样做,如果是的话,将它作为 CI/CD

的一部分的理想方式是什么

来自文档:

To create or update the indexes that your app's use, you upload the index.yaml configuration file to Cloud Datastore. Indexes that don't exist yet are created after that configuration file is uploaded.

如果文件没有新索引,则不会发生任何事情。