一个小文件怎么样? 1KB的费用为2.9RU? [英] How does a small document < 1KB costs 2.9RU ?

查看:56
本文介绍了一个小文件怎么样? 1KB的费用为2.9RU?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,


我正在探索Azure CosmosDB,我正在浏览入门文档。我能够创建SQL CosmosDB并使用
< strong> QuickStart  刀片来创建容器  步骤1:添加容器。然后我从步骤2下载了源代码: 下载并运行您的.NET应用程序


然后我运行了应用程序并且能够添加几个todo的进入我的宇宙数据库。我观察到有两件事,如果我得到一些答案,我会欣赏



1。当我跑



解决方案


感谢您的反馈。 


所有数据库操作的费用均由Azure Cosmos DB规范化,并以
请求单位(或简称RU)。您可以将每秒RU视为吞吐量的货币。每秒RU是基于汇率的货币。它抽象了执行Azure Cosmos DB支持的数据库
操作所需的系统资源,如CPU,IOPS和内存。



读取1 KB项目的成本是1个请求单位(或1个RU)。所有其他数据库操作类似地使用RU分配成本。无论您使用哪种API与Azure Cosmos容器进行交互,成本始终由RU测量。无论
数据库操作是写入,读取还是查询,成本总是以RU来衡量。



在第一次查询中是否您会看到计算成本低于第二个查询,因为在第二个查询中,正在进行比较会增加CPU成本。所以它是RU提供的总体成本,而不仅仅是读取的成本。


您可以参考  Azure Cosmos DB中的请求单元和此

博客
,以了解影响RU的因素。


希望它有所帮助。


Hello,

I am exploring Azure CosmosDB and i was going through the Getting Started Document. I was able to create the SQL CosmosDB and used the QuickStart blade to create the container Step 1: Add Container. I then downloaded the source from the Step 2: Download and run your .NET app

I then ran the application and was able to add couple of todo's into my cosmos db. There are two things i observed that i would appreciate if i get some answers on.

1. When i ran 

SELECT * FROM c

解决方案

Hi,

Thanks for your feedback. 

The cost of all database operations is normalized by Azure Cosmos DB and is expressed by Request Units (or RUs, for short). You can think of RUs per second as the currency for throughput. RUs per second is a rate-based currency. It abstracts the system resources such as CPU, IOPS, and memory that are required to perform the database operations supported by Azure Cosmos DB.

The cost to read a 1 KB item is 1 Request Unit (or 1 RU). All other database operations are similarly assigned a cost using RUs. No matter which API you use to interact with your Azure Cosmos container, costs are always measured by RUs. Whether the database operation is a write, read, or query, costs are always measured in RUs.

In first query if you see cost for computation is less than in second query, as in second query there is comparison ongoing which increases the CPU cost. So it is overall cost provided in RUs, not just the cost of read.

You can refer Request Units in Azure Cosmos DB and this blog to understand what are the factors that effect RUs.

Hope it helps.


这篇关于一个小文件怎么样? 1KB的费用为2.9RU?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆