Hi @ Ananth Sharma
Handling large JSON documents in Azure Cosmos DB can be tricky, but there are ways to improve query performance and reduce RU usage:
Indexing Smartly: Customize indexing to exclude unnecessary properties. Use composite indexing if filtering on multiple fields.
Better Queries: Avoid SELECT *, filter on indexed properties, and use pagination to handle large results efficiently.
Partitioning Matters: Pick a partition key that spreads data evenly to avoid hot partitions. Try to keep queries within a single partition.
Data Structure: If you often need full documents, denormalization could help. If you only query parts of the document, splitting into smaller ones might work better.
You can check out Microsoft's guide for more details.
Hope this helps. Do let us know if you any further queries.
If this answers your query, do click Accept Answer
and Yes
for was this answer helpful. And, if you have any further query do let us know.