mirror of
https://github.com/Azure/cosmos-explorer.git
synced 2026-01-28 14:14:08 +00:00
added offer throughput
This commit is contained in:
@@ -183,10 +183,15 @@ export async function createTestSQLContainer({
|
|||||||
const client = new CosmosClient(clientOptions);
|
const client = new CosmosClient(clientOptions);
|
||||||
const { database } = await client.databases.createIfNotExists({ id: databaseId });
|
const { database } = await client.databases.createIfNotExists({ id: databaseId });
|
||||||
try {
|
try {
|
||||||
const { container } = await database.containers.createIfNotExists({
|
const { container } = await database.containers.createIfNotExists(
|
||||||
id: containerId,
|
{
|
||||||
partitionKey,
|
id: containerId,
|
||||||
});
|
partitionKey,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
offerThroughput: 4000,
|
||||||
|
},
|
||||||
|
);
|
||||||
if (includeTestData) {
|
if (includeTestData) {
|
||||||
const batchCount = TestData.length / 100;
|
const batchCount = TestData.length / 100;
|
||||||
for (let i = 0; i < batchCount; i++) {
|
for (let i = 0; i < batchCount; i++) {
|
||||||
|
|||||||
Reference in New Issue
Block a user