Skip to content

Commit 2e3d728

Browse files
authored
fix: update units for effectiveCacheSize and tempBuffers (#112)
These parameters need to be described in number of 8kb blocks https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Appendix.PostgreSQL.CommonDBATasks.Parameters.html
1 parent b7f3ce6 commit 2e3d728

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/database/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,11 +159,11 @@ export class PgStacDatabase extends Construct {
159159
return {
160160
maxConnections: `${maxConnections}`,
161161
sharedBuffers: `${sharedBuffers / 8}`, // Represented in 8kb blocks
162-
effectiveCacheSize: `${effectiveCacheSize}`,
162+
effectiveCacheSize: `${effectiveCacheSize / 8}`, // Represented in 8kb blocks
163163
workMem: `${workMem}`,
164164
maintenanceWorkMem: `${maintenanceWorkMem}`,
165165
maxLocksPerTransaction: "1024",
166-
tempBuffers: `${tempBuffers}`,
166+
tempBuffers: `${tempBuffers / 8}`, // Represented in 8kb blocks
167167
seqPageCost: `${seqPageCost}`,
168168
randomPageCost: `${randomPageCost}`,
169169
};

0 commit comments

Comments
 (0)