paginationbindingazure-functionsazure-cosmosdb

Paging Support in Azure Function CosmosDB Input binding


I'm trying to export data from CosmosDB to a different collection, by query.

I created a function with that query as CosmosDB binding parameter.

The function keeps timing out because the query results set is too large, and takes more than 5 minutes to retrieve.

Any suggestions how to run the export using Azure functions? Or should I take a different approach?


Solution

  • I'm trying to export data from CosmosDB to a different collection, by query.

    According to your description, maybe you could try to use DocumentDB Data Migration Tool to achieve your goal. You could choose the Source Information and Target Information.And you could add specific query statement by choosing Enter Query radio button. For more details, please read this article.

    enter image description here