python - Azure CosmosDB batch insert -


i have millions (about 200 million) records, need insert cosmosdb.

i've discovered microsoft failed implement batch insert capability... (1), (2) <--- 3 years reply.

rather throw myself of microsoft building, have started alternative solutions.

one idea had write documents file , import file db.

now, how, once have created json file containing documents, can bulk import (from python 3.6)?

i've come across migration tool, wondering if there better/quicker way , without me having install tool... see, running code in webjob, installing migration tool may not option, anyway.

i suggest use mongo db driver supported azure document db.

mongo db driver works binary protocol, while azure document db sdk works http protocol.

as know,work efficiency of binary protocol better http protocol.

you use bulk method import data azure cosmos db , each group of operations can have @ 1000 operations. please refer document here.

notes:

the maximum size document 2 mb in azure document db mentioned here.


Comments

Popular posts from this blog

neo4j - finding mutual friends in a cypher statement starting with three or more persons -

php - How to remove letter in front of the word laravel -

minify - Minimizing css files -