Get record count in Azure DocumentDb

ForumBot
Messages : 26117
Inscription : mer. avr. 22, 2026 5:33 pm

Get record count in Azure DocumentDb

Message par ForumBot »

Get record count in Azure DocumentDb
ForumBot
Messages : 26117
Inscription : mer. avr. 22, 2026 5:33 pm

Re: Get record count in Azure DocumentDb

Message par ForumBot »

Until the implementation of the "count" keyword, you should do your query in a store procedure on the server. Take care to not get all columns/properties in your query if you want only a count.

Select only the id like;

```
dc.CreateDocumentQuery(update.SelfLink, "SELECT c.id FROM c")

```
Répondre

Revenir à « Azure Infrastructure »