added offer throughput

This commit is contained in:
Asier Isayas
2026-01-20 12:33:01 -08:00
parent 45ecb37f92
commit cea2c49eb6

View File

@@ -183,10 +183,15 @@ export async function createTestSQLContainer({
const client = new CosmosClient(clientOptions);
const { database } = await client.databases.createIfNotExists({ id: databaseId });
try {
const { container } = await database.containers.createIfNotExists({
id: containerId,
partitionKey,
});
const { container } = await database.containers.createIfNotExists(
{
id: containerId,
partitionKey,
},
{
offerThroughput: 4000,
},
);
if (includeTestData) {
const batchCount = TestData.length / 100;
for (let i = 0; i < batchCount; i++) {