我尝试使用以下代码在更改源中启用完全保真度:
ContainerProperties containerProperties = new ContainerProperties("myContainer", "/pk");
containerProperties.ChangeFeedPolicy.FullFidelityRetention = TimeSpan.FromMinutes(5);
CosmosContainerResponse containerCreateResponse = await database.CreateContainerAsync(containerProperties, 400);
但我得到以下异常:
The retention duration in Change Feed policy can only be enabled when Full-Fidelity is enabled for database account.
如何为数据库帐户启用此模式?我在门户上没有看到任何选项。
最佳答案
公共(public)预览版即将发布,您正在使用预览版 SDK,并且 API 已启用,以便用户在公共(public)预览版发布并可以注册后使用它们。请继续关注:)
关于azure - 如何在 Azure Cosmos DB 更改源中启用完全保真度,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/66360999/