Get record count in Azure DocumentDb

后端 未结 8 1802
孤街浪徒
孤街浪徒 2021-02-03 18:44

It seems like \'select count(*) from c\' in the SQL queries allowed by documentdb in the azure site and through the documentdb explorer (https://studiodocumentdb.codeplex.com/)

8条回答
  •  伪装坚强ぢ
    2021-02-03 19:22

    This is possible in the same way you write SQL query now,

    SELECT VALUE COUNT(1) FROM myCollection
    

    NOTE: COUNT(1) won't work for a huge datasets.

    You can read more about supported queries from here

提交回复
热议问题