Skip to content

Commit 5ee64be

Browse files
committed
Update connection string
1 parent b79acb7 commit 5ee64be

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
2-
"ConnectionString": "Server=tfb-database;Database=hello_world;User Id=benchmarkdbuser;Password=benchmarkdbpass;SSL Mode=Disable;Maximum Pool Size=512;NoResetOnClose=true;Enlist=false;Max Auto Prepare=4",
2+
"ConnectionString": "Server=tfb-database;Database=hello_world;User Id=benchmarkdbuser;Password=benchmarkdbpass;SSL Mode=Disable;Maximum Pool Size=18;Enlist=false;Max Auto Prepare=4;Multiplexing=true;Write Coalescing Buffer Threshold Bytes=1000;",
33
"Database": "postgresql"
44
}

frameworks/CSharp/aspnetcore/src/Platform/Data/RawDbNpgsql.cs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -138,11 +138,10 @@ public async Task<World[]> LoadMultipleUpdatesRows(int count)
138138

139139
// Ensure unique ids by incrementing duplicates
140140
for (var i = 1; i < count; i++)
141-
if (ids[i] <= ids[i - 1])
142-
ids[i] = Math.Min(ids[i - 1] + 1, 10000);
141+
if (ids[i] == ids[i - 1])
142+
ids[i] = (ids[i] % 10000) + 1;
143143

144-
using var connection = CreateConnection();
145-
await connection.OpenAsync();
144+
using var connection = await _dataSource.OpenConnectionAsync();
146145

147146
// Each row must be selected randomly using one query in the same fashion as the single database query test
148147
// Use of IN clauses or similar means to consolidate multiple queries into one operation is not permitted.

0 commit comments

Comments
 (0)