we process 3 to 4 million query / day and using LIKE operator per query gives around 1800 RU/s. This causes latency issue as well as incurs high cost
The Document model is given in my example.
Our max RU/s : 12000
Throughput : Auto scale
The document is partitioned on /flowname
Indexing policy:
{
"indexingMode": "consistent",
"automatic": true,
"includedPaths": [
{
"path": "/flowname/?"
},
{
"path": "/decisioncode/?"
},
{
"path": "/flowIdentify/*"
}
],
"excludedPaths": [
{
"path": "/*"
},
{
"path": "/\"_etag\"/?"
}
]
}