Public Preview: Azure Cosmos DB computed properties
Közzététel dátuma: május 23, 2023
Azure Cosmos DB now supports computed properties. These properties aren't persisted in items themselves and instead have values derived from existing item properties, expressed as a query. You can reference computed properties in your business logic queries as if they were any other persisted property. Using computed properties makes it easier to write complex logic once and reference it multiple times. You can also add a single index on these properties or use them as part of a composite index for increased performance. Computed properties unlock new scenarios for queries including defining a property based on a system function and then indexing the property and ordering by or grouping by it.