【发布时间】:2022-06-11 00:03:00
【问题描述】:
文档提供了几种在以编程方式创建容器时指定吞吐量的不同方法。以下每种配置有何不同?
// A. Create with default throughput?
const { container } = await database.containers.createIfNotExists({ id: 'gizmos' });
// B. Create with fixed throughput?
const { container } = await database.containers.createIfNotExists({ id: 'gizmos', throughput: 400 });
// C. Create with "maxThroughtput"?
const { container } = await database.containers.createIfNotExists({ id: 'gizmos', maxThroughput: 400 });
// D. Create with "offerThroughput"?
const { container } = await database.containers.createIfNotExists({ id: 'gizmos' }, { offerThroughput: 400 });
API 文档的细节非常少... Azure Cosmos SDK for JavaScript | Containers.createIfNotExists()
【问题讨论】:
标签: node.js azure-cosmosdb azure-cosmosdb-sqlapi