From 09e128a0c22026bea0f9bd89e2a00f9cb0658b24 Mon Sep 17 00:00:00 2001 From: Quentin Roy Date: Wed, 31 Jan 2024 18:11:32 +0100 Subject: [PATCH] log-server: increase default selectQueryLimit --- .changeset/rotten-maps-clap.md | 5 +++++ packages/log-server/src/store.ts | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 .changeset/rotten-maps-clap.md diff --git a/.changeset/rotten-maps-clap.md b/.changeset/rotten-maps-clap.md new file mode 100644 index 00000000..1174c9b6 --- /dev/null +++ b/.changeset/rotten-maps-clap.md @@ -0,0 +1,5 @@ +--- +'@lightmill/log-server': minor +--- + +Significantly increase default select query limit of SQLiteStore diff --git a/packages/log-server/src/store.ts b/packages/log-server/src/store.ts index bd99c30a..f80ee6cb 100644 --- a/packages/log-server/src/store.ts +++ b/packages/log-server/src/store.ts @@ -18,7 +18,7 @@ import loglevel, { LogLevelDesc } from 'loglevel'; import { groupBy, last } from 'remeda'; import { arrayify } from './utils.js'; -const DEFAULT_SELECT_QUERY_LIMIT = 10000; +const DEFAULT_SELECT_QUERY_LIMIT = 1000000; const __dirname = url.fileURLToPath(new URL('.', import.meta.url)); const migrationFolder = path.join(__dirname, 'db-migrations');