mirror of
https://github.com/Azure/cosmos-explorer.git
synced 2026-01-21 18:54:22 +00:00
added offer throughput
This commit is contained in:
@@ -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++) {
|
||||
|
||||
Reference in New Issue
Block a user