Cloning an Azure Cosmos DB collection with Gremlin API

Surya 0 Reputation points
2024-03-05T19:55:54.0366667+00:00

What is the best way to clone data from one Azure Cosmos DB collection to another using the Gremlin API? I'm considering using the Azure Data Migration tool, but I'm not sure if it will work in this case. Any suggestions would be appreciated.

Azure Database Migration service
Azure SQL Database
Azure Cosmos DB
Azure Cosmos DB
An Azure NoSQL database service for app development.
1,449 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. GeethaThatipatri-MSFT 27,642 Reputation points Microsoft Employee
    2024-03-06T13:52:56.2533333+00:00

    Hi,@Surya Welcome to Microsoft Q&A thanks for posting your question.

    Gremlin API (using graph traversals) isn’t a good protocol for performing bulk data migrations. Any tool which can clone/migrate data between Cosmos DB collections would be appropriate for migrating the underlying data in the collection.

    I think the Data Migration Tool should be a reasonable choice. If it is for different account, then feel free to use Backup & Restore but it will copy all the collections. You can manually write code to copy the collection.

    Please let me know if you need any additional information.

    Regards

    Geetha