mirror of
https://github.com/docmost/docmost.git
synced 2026-08-21 12:41:37 +10:00
feat(base): add BASE_QUERY_CACHE_TRACE flag for duckdb operation logging
This commit is contained in:
@@ -344,6 +344,14 @@ export class EnvironmentService {
|
||||
);
|
||||
}
|
||||
|
||||
getBaseQueryCacheTrace(): boolean {
|
||||
return (
|
||||
this.configService
|
||||
.get<string>('BASE_QUERY_CACHE_TRACE', 'false')
|
||||
.toLowerCase() === 'true'
|
||||
);
|
||||
}
|
||||
|
||||
getBaseQueryCacheMemoryLimit(): string {
|
||||
// Per-DuckDB-instance memory ceiling. DuckDB accepts human-readable sizes:
|
||||
// '32MB', '128MB', '1GB'. Default keeps a single instance from
|
||||
|
||||
Reference in New Issue
Block a user