Azure Cosmos DB Blog

The latest news, updates and technical insights from the Azure Cosmos DB team

Optimizing database performance: Change partition keys of a container in Azure Cosmos DB for NoSQL API (preview)

Partitioning is a key concept in Azure Cosmos DB, a fully managed, globally distributed, multi-model database service that offers unlimited scalability and low latency. By distributing data across multiple physical partitions based on the partition key(s), Azure Cosmos DB optimizes data access and distribution, profoundly impacting database ...

MongoDB to Azure Cosmos DB for NoSQL Migration – Learnings from Java SDK V4 Micro-Optimizations

The authors wish to thank Govind Kanshi (Principal PM Manager), Abinav Rameesh (Principal PM Manager), Kushagra Thapar (Principal Engineering Manager), Annie Liang (Sr. Software Engineer) and Faiz Chachiya (Sr. Cloud Solution Architect, CSU) for their valuable insights, and contributions during the Proof-of-Concept (PoC). Introduction  ...

Best Practices for Re-modeling Graph database to Azure Cosmos DB for NoSQL

Introduction Azure Cosmos DB is Microsoft's premier fully managed NoSQL database for modern app development. It is ideal for solutions including artificial intelligence, digital commerce, Internet of Things, booking management and other types of use cases. It offers single-digit millisecond response times, automatic and instant scalability ...

Azure Cosmos DB design patterns – Part 1: Attribute array

(image) Over the years, customers have asked us for help in designing applications around specific scenarios they were trying to achieve. In some cases, these centered around implementing certain patterns using a JSON-based NoSQL database. Some of these patterns are very common in the NoSQL world, but not well understood by those new to ...

4 Design Patterns to Deal with Large Item Sizes in Azure Cosmos DB for NoSQL

Introduction  A recommended best practice in Azure Cosmos DB for NoSQL is to avoid overly large item sizes. An Azure Cosmos DB item can represent either a document in a container, a row in a table, or a node or edge in a graph, depending on which API you use. Though the maximum size of an item allowed in Azure Cosmos DB for NoSQL is 2 MB, it...

Antipatterns on Azure Cosmos DB

This post was authored by Microsoft MVP and Azure Cosmos DB community champion Blaize Stewart.  You can reach Blaize (@theonemule) on Twitter. Software developers of all kinds love patterns. They give us reusable ideas that can be applied in many different contexts. We also have antipatterns: bad practices and habits that crop up enough ...