Skip to content

[Rule] Use Bulk API for high-volume ingestion operations #167

Description

@sajeetharan

When inserting, updating, or deleting large numbers of documents (hundreds+), using the Bulk API is far more efficient than individual operations. The SDK batches requests internally and manages parallelism.

We need a rule covering:

  • .NET: \AllowBulkExecution = true\ on \CosmosClientOptions\
  • Java: \�nableBulk()\ on \CosmosContainerProperties\
  • Python: \container.execute_item_batch()\
  • When NOT to use bulk (small batches, latency-sensitive reads)

Category: \sdk-\ SDK Best Practices
Impact: High
Suggested file: \skills/cosmosdb-best-practices/rules/sdk-bulk-operations.md\

References:


This is a good first issue! Follow the Contributing Guide and use the rule template to get started.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions