AZgeneral-availability-unique-partial-indexes-in-azure-cosmos-db-api-for-mongodb: General availability: Unique partial indexes in Azure Cosmos DB API for MongoDB

Published . Last updated .

Microsoft Azure update AZgeneral-availability-unique-partial-indexes-in-azure-cosmos-db-api-for-mongodb.

Azure update ID
AZgeneral-availability-unique-partial-indexes-in-azure-cosmos-db-api-for-mongodb
Services
Azure Cosmos DB
Tags
Features

Release overview

Release status
Launched
General availability
April 2022
Product categories
Databases, Internet of Things

The unique partial indexes feature allows you more flexibility to specify exactly which fields in which documents you’d like to index, all while enforcing uniqueness of that field’s value. This feature is used by specifying a partialFilterExpression when creating the index along with a 'unique' constraint in your Azure Cosmos DB API for MongoDB index. This results in the unique constraint being applied only to the documents that meet the specified filter expression. 

Learn more.