How we can insert and upsert bulk documents into Cosmos DB SQL API through stored procedure

Abdulla Mahammad Khan Dawood 186 Reputation points
2021-02-26T12:51:39.777+00:00

Hi All,

Good Day!!

How we can insert and upsert bulk documents into Cosmos DB SQL API through stored procedure.

And we are using databricks service to execute cosmos stored procedure through pyspark code, Also please help us in library which we need to use to execute bulk insert or upsert in Cosmos SQL API through stored procedure.

Appreciate if someone help share the code snippet of stored procedure for bulk document insert and upsert scenario and also the python library should support spark 3.0 version.

Thank you in anticipation!!

Best Regards,
Mahammad Khan

Azure Cosmos DB
Azure Cosmos DB
An Azure NoSQL database service for app development.
1,504 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Navtej Singh Saini 4,221 Reputation points Microsoft Employee
    2021-03-03T00:58:59.357+00:00

    @Abdulla Mahammad Khan Dawood

    Can you please check this thread and this for reference and let us know if you are looking for something similar.

    Regards
    Navtej S