AppView in a box as a Vite plugin thing hatk.dev
2
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix: set DuckDB memory_limit=1GB threads=4 for container environments

Host reports 36GB RAM but container is capped at 4GB. Without limits
DuckDB targets 29GB buffer pool and gets OOM-killed.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

+4 -1
+4 -1
packages/hatk/src/db.ts
··· 123 123 tableSchemas: TableSchema[], 124 124 ddlStatements: string[], 125 125 ): Promise<void> { 126 - instance = await DuckDBInstance.create(dbPath === ':memory:' ? undefined : dbPath) 126 + instance = await DuckDBInstance.create(dbPath === ':memory:' ? undefined : dbPath, { 127 + memory_limit: '1GB', 128 + threads: '4', 129 + }) 127 130 con = await instance.connect() 128 131 readCon = await instance.connect() 129 132