From bb66c066eeec754fc8eaa66817d3a2a826b038eb Mon Sep 17 00:00:00 2001 From: Quentin Roy Date: Wed, 31 Jan 2024 16:09:03 +0100 Subject: [PATCH] log-server: increase default select query limit --- packages/log-server/src/store.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/log-server/src/store.ts b/packages/log-server/src/store.ts index 33eaa9ac..bd99c30a 100644 --- a/packages/log-server/src/store.ts +++ b/packages/log-server/src/store.ts @@ -18,6 +18,8 @@ import loglevel, { LogLevelDesc } from 'loglevel'; import { groupBy, last } from 'remeda'; import { arrayify } from './utils.js'; +const DEFAULT_SELECT_QUERY_LIMIT = 10000; + const __dirname = url.fileURLToPath(new URL('.', import.meta.url)); const migrationFolder = path.join(__dirname, 'db-migrations'); @@ -74,7 +76,7 @@ export class SQLiteStore { db: string, { logLevel = loglevel.getLevel(), - selectQueryLimit = 1000, + selectQueryLimit = DEFAULT_SELECT_QUERY_LIMIT, }: { logLevel?: LogLevelDesc; selectQueryLimit?: number } = {}, ) { const logger = loglevel.getLogger('store');