Why Tablyne for Azure Cosmos DB

A Cosmos DB client that shows the RU cost of every read, caps queries, and reviews each write with an _etag check.

Tablyne tells you what a Cosmos DB query cost before the bill does: it puts the request charge next to the result. Every query shows the RU it spent. The figure is a minimum, because the server reports cost only after each request.

Cosmos DB bills in request units, so a careless query is a real expense. Tablyne sets a ceiling in RU for each query. When a read reaches the ceiling, it stops asking for pages and says so. You can continue past it on purpose. The ceiling is checked between requests, so one request may go over it by a little.

Opening a container reads nothing. You enter the partition key, then run the query. A query across all partitions needs its own switch, because it charges a minimum number of RU for each partition. Reading one document by id and partition key is also offered, since it is the cheapest read in Cosmos DB.

Writes are staged. You edit a document, Tablyne lists the operations, and you review them before anything is sent. Each replace or delete carries the document’s _etag in an If-Match header. If someone changed the document since you read it, the server answers 412 and nothing is written.

Next to the rest of your stack

Tablyne keeps Cosmos DB in the same window as your other databases. The grid, the review step and the pending-changes bar work the same way, so what you learned elsewhere still applies.