Я создал совершенно новую коллекцию и применил политику индексации отказа.
{
"indexingMode": "consistent",
"automatic": true,
"includedPaths": [
{
"path": "/path/to/included/property/?"
},
{
"path": "/path/to/root/of/multiple/included/properties/*"
}
],
"excludedPaths": [
{
"path": "/*"
},
{
"path": "/\"_etag\"/?"
}
]
}
Затем я дважды написал базовый документ (используя container.UpsertItemAsync()
).
Inserting document: {"id":"foo","PartitionKey":"bar"}
RequestCharge = 5.52
Updating document: {"id":"foo","PartitionKey":"bar"}
RequestCharge = 10.29
Почему вторая запись стоила мне почти вдвое больше RU?