Skip to content

Commit

Permalink
fix: update units for effectiveCacheSize and tempBuffers
Browse files Browse the repository at this point in the history
  • Loading branch information
hrodmn committed Dec 9, 2024
1 parent b7f3ce6 commit 1064c7f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/database/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -159,11 +159,11 @@ export class PgStacDatabase extends Construct {
return {
maxConnections: `${maxConnections}`,
sharedBuffers: `${sharedBuffers / 8}`, // Represented in 8kb blocks
effectiveCacheSize: `${effectiveCacheSize}`,
effectiveCacheSize: `${effectiveCacheSize / 8}`, // Represented in 8kb blocks
workMem: `${workMem}`,
maintenanceWorkMem: `${maintenanceWorkMem}`,
maxLocksPerTransaction: "1024",
tempBuffers: `${tempBuffers}`,
tempBuffers: `${tempBuffers / 8}`, // Represented in 8kb blocks
seqPageCost: `${seqPageCost}`,
randomPageCost: `${randomPageCost}`,
};
Expand Down

0 comments on commit 1064c7f

Please sign in to comment.