I am new to Azure Cosmos db and i have to import data into my cosmos db account.
I have tried out https://learn.microsoft.com/en-us/azure/cosmos-db/gremlin/bulk-executor-dotnet#java
In this link they have imported some randomly generated values from a predefined seed values: SeedGenerationValues.java (Or I think so.)
Is there a way where I can input a few csv and the schema of the graph and get the complete graph?
I have tried to change each record into a gremlin query and tried to insert the data from local: DataWeekender-DataLoad.ipynb
But this is very inefficient and takes lot of time to import a large dataset (with 1 million records). Is there a way like the bulk import provided by Microsoft Azure which imports the data efficiently into the gremlin cosmos db?
Is there a repository which I can use where I can simply give the csv data's and the schema as input and get the complete graph, just like how we do in neo4j and import data?
To import
.csvfile into Azure Cosmos DB Gremlin API you can use below code. Below is the.NETcode which imports data into Cosmos DB Gremlin API container.Output: