Yandex Cloud
Search
Contact UsGet started
  • Blog
  • Pricing
  • Documentation
  • All Services
  • System Status
    • Featured
    • Infrastructure & Network
    • Data Platform
    • Containers
    • Developer tools
    • Serverless
    • Security
    • Monitoring & Resources
    • ML & AI
    • Business tools
  • All Solutions
    • By industry
    • By use case
    • Economics and Pricing
    • Security
    • Technical Support
    • Customer Stories
    • Gateway to Russia
    • Cloud for Startups
    • Education and Science
  • Blog
  • Pricing
  • Documentation
Yandex project
© 2025 Yandex.Cloud LLC
Yandex Managed Service for YDB
  • Getting started
  • Access management
    • Overview
      • Pricing policy for serverless mode
      • Request cost for YQL
      • Request cost for the Document API
      • Request cost for special APIs
      • Cost of topic operations
    • Dedicated mode
  • Monitoring metrics
  • Audit Trails events
  • FAQ
  • Public materials
  1. Pricing policy
  2. Serverless mode
  3. Request cost for the Document API

Rules for estimating the cost of requests to YDB via the Document API

Written by
Yandex Cloud
Updated at December 5, 2024

The cost per document requested via the Document API is equal to the RU (Request Units) cost per unit multiplied by the document size in blocks. The size in blocks equals the size in bytes divided by the block size and rounded up. Requesting a non-existent document is the same as reading a document with a size of 1 block. If a request processes multiple documents, e.g., BatchGetItem, the total cost is equal to the sum of costs per document. If you use the Query and Scan methods, pricing is based on the amount of data read regardless of the number of documents.

Query type Unit cost Block size
Reading (GetItem, BatchGetItem, Query, Scan) 1 RU 4 KB
Reading within a transaction (TransactGetItems) 2 RU 4 KB
Writing (PutItem, BatchWriteItem, UpdateItem) 2 RU 1 KB
Writing within a transaction (TransactWriteItems) 4 RU 1 KB
Deleting (DeleteItem) 2 RU N/A
Working with a DB schema (CreateTable, DeleteTable, DescribeTable, ListTables) 0 RU N/A

Was the article helpful?

Previous
Request cost for YQL
Next
Request cost for special APIs
Yandex project
© 2025 Yandex.Cloud LLC