Skip to content

Commit aa390ab

Browse files
authored
Merge pull request #112478 from manishmsfte/dynamodb-art-branch
Added a new article
2 parents 941c7c9 + b4da070 commit aa390ab

File tree

4 files changed

+570
-46
lines changed

4 files changed

+570
-46
lines changed

articles/cosmos-db/TOC.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1160,6 +1160,8 @@
11601160
href: migrate-relational-to-cosmos-db-sql-api.md
11611161
- name: Migrate - Couchbase to SQL API
11621162
href: couchbase-cosmos-migration.md
1163+
- name: Migrate - DynamoDB to SQL API
1164+
href: dynamo-to-cosmos.md
11631165
- name: Bulk executor library
11641166
items:
11651167
- name: About bulk executor library

articles/cosmos-db/couchbase-cosmos-migration.md

Lines changed: 18 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -309,46 +309,30 @@ This is a simple type of workload in which you can perform lookups instead of qu
309309

310310
```json
311311
{
312-
"indexingMode": "consistent",
313-
"includedPaths":
314-
[
315-
{
316-
"path": "/*",
317-
"indexes":
318-
[
319-
{
320-
"kind": "Range",
321-
"dataType": "Number"
322-
},
323-
{
324-
"kind": "Range",
325-
"dataType": "String"
326-
},
327-
{
328-
"kind": "Spatial",
329-
"dataType": "Point"
330-
}
331-
]
332-
}
333-
],
334-
"excludedPaths":
335-
[
336-
{
337-
"path": "/path/to/single/excluded/property/?"
338-
},
339-
{
340-
"path": "/path/to/root/of/multiple/excluded/properties/*"
341-
}
342-
]
343-
}
312+
"indexingMode": "consistent",
313+
"automatic": true,
314+
"includedPaths": [
315+
{
316+
"path": "/*"
317+
}
318+
],
319+
"excludedPaths": [
320+
{
321+
"path": "/\"_etag\"/?"
322+
}
323+
]
324+
}
344325
````
345326

346327
Replace the above indexing policy with the following policy:
347328

348329
```json
349330
{
350-
"indexingMode": "none"
351-
}
331+
"indexingMode": "none",
332+
"automatic": false,
333+
"includedPaths": [],
334+
"excludedPaths": []
335+
}
352336
```
353337

354338
1. Use the following code snippet to create the connection object. Connection Object (to be placed in @Bean or make it static):

0 commit comments

Comments
 (0)