0
votes

For Python API for Azure Functions serverless and Comsmos DB input binding. Is it possible to tune maxitemcount? Or is it dynamically set. I do some queries resulting in large results and it seems the bottleneck is throughput between Cosmos DB and the executing HTTP-triggered function.

/MG

1

1 Answers

0
votes

Assuming you are using the SQL Query input option, you should be able to use the LIMIT clause along with ORDER BY to set a maximum number of records returned. You may also want to take a look at the metrics on your Cosmos account, just in case the maxing out your available RUs causing the bottleneck.