【问题标题】:Azure DocumentDB Orderby not working with Partitioned collectionAzure DocumentDB Orderby 不使用分区集合
【发布时间】:2016-06-15 13:51:19
【问题描述】:

我们在 azure DocumentDB 中创建了一个以 MyID 作为分区键的分区集合,并将数据填充到集合中,但是当我们尝试使用 order by 它运行查询时失败,

示例查询, SELECT * FROM Families f JOIN c IN f.children WHERE f.MyId = 123 ORDER BY f.address.city ASC

请提出相同的建议。

【问题讨论】:

    标签: azure-cosmosdb


    【解决方案1】:

    DocumentDB 仅作为预览功能支持跨分区排序。您需要发送电子邮件至 askdocdb@microsoft.com 才能访问它。

    DocumentDB 从 SDK 1.9.0+ 开始支持跨分区 ORDER BY。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-03-05
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-10-17
      相关资源
      最近更新 更多