[P2] Add Bulk Write Operations (upsert, update, delete)
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 45/100
Research direction
Start by inspecting the existing mkitem array-input command and the shell's command entry points to understand how batch operations are currently handled. Define the supported bulk commands, input forms, concurrency behavior, progress and cost reporting, then add coverage for the agreed behavior; done means the scope and completion criteria are confirmed for upsert, delete, and patch.
Written by the indexing model from the issue text.
Description
Feature Request
Priority: P2 (Medium)
Description
CosmosDB Shell supports array input for mkitem (batch create) but lacks bulk upsert, update, and delete operations. Bulk operations are critical for data migration and maintenance tasks.
Comparable Features in Other Shells
- mongosh:
bulkWrite(), ordered/unordered bulk operations - sqlcmd: Bulk insert via
bcp
Proposed Behavior
Add a bulk command or extend existing commands:
bulk upsert <file>— Bulk upsert from JSON array or filebulk delete <query>— Bulk delete matching documentsbulk patch <file>— Bulk patch operations- Support concurrency control (max parallelism)
- Report progress, success/failure counts, and total RU cost
Example Usage
bulk upsert ./updates.json --max-parallelism 10
bulk delete "SELECT c.id, c.pk FROM c WHERE c.expired = true"
bulk patch ./patches.json
- Dominant language
- C#
- Stars
- 3
- Forks
- 7
- Avg merge
- 1d 9h
- Merged PRs (30d)
- 18
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from Azure/CosmosDBShell
-
automation P1
Difficulty 5/5 Over a week Newbie friendliness 45/100
Azure/CosmosDBShell#178 · 1 comment ·
-
automation P1
Difficulty 5/5 Over a week Newbie friendliness 35/100
Azure/CosmosDBShell#175 · 1 comment ·
-
agentic enhancement P1
Difficulty 5/5 Over a week Newbie friendliness 35/100
Azure/CosmosDBShell#159 · 2 comments ·
-
agentic enhancement P0
Difficulty 4/5 3-5 days Newbie friendliness 55/100
Azure/CosmosDBShell#153 · 1 comment ·
-
Difficulty 5/5 Over a week Newbie friendliness 30/100
Azure/CosmosDBShell#118 · 1 comment ·
All issues in Azure/CosmosDBShell
Similar issues
-
priority-0
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
Difficulty 1/5 Under an hour Newbie friendliness 78/100
StackExchange/StackExchange.Redis#3249 ·
-
[Feat] 조합 영역 구분선 개선 Open
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
type/automation type/tech-debt
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 88/100