Skip to content

Commit 3128a6d

Browse files
authored
Update computed-properties.md
Added steps to create compute property using data explorer.
1 parent 8ea9dea commit 3128a6d

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

articles/cosmos-db/nosql/query/computed-properties.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,26 @@ Updating computed properties on an existing container is not supported in Python
185185
> [!TIP]
186186
> Every time you update container properties, the old values are overwritten. If you have existing computed properties and want to add new ones, be sure that you add both new and existing computed properties to the collection.
187187
188+
### Create computed properties using azure data explorer in azure portal
189+
190+
You can create computed properties in azure data explorer in azure portal also.
191+
192+
- Click the *Scale & Settings* under the container name.
193+
- Click the *computed properties* tab.
194+
- Create and define the compute property. Below is the sample computed property.
195+
196+
```json
197+
[
198+
{
199+
"name": "cp_lowerName",
200+
"query": "SELECT VALUE LOWER(c.name) FROM c"
201+
}
202+
]
203+
```
204+
- Click *Save* to save the computed property.
205+
206+
![create_computed_property_using_data_explorer](https://i.imgur.com/47aQNsw.png)
207+
188208
## Use computed properties in queries
189209

190210
Computed properties can be referenced in queries the same way that persisted properties are referenced. Values for computed properties that aren't indexed are evaluated during runtime by using the computed property definition. If a computed property is indexed, the index is used the same way that it's used for persisted properties, and the computed property is evaluated on an as-needed basis. We recommend that you [add indexes on your computed properties](#index-computed-properties) for the best cost and performance.

0 commit comments

Comments
 (0)