你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

QueryRequestOptions.PopulateIndexMetrics 属性

定义

获取或设置 PopulateIndexMetrics Azure Cosmos DB 服务中文档查询请求的请求选项。

public bool? PopulateIndexMetrics { get; set; }
member this.PopulateIndexMetrics : Nullable<bool> with get, set
Public Property PopulateIndexMetrics As Nullable(Of Boolean)

属性值

注解

PopulateIndexMetrics 用于获取索引指标,以了解查询引擎如何使用现有索引,以及它如何使用潜在的新索引。 结果将显示在 FeedResponse.IndexMetrics 中。 请注意,此选项会产生开销,因此应仅在调试慢速查询时启用它。

适用于