Skip to content

Commit

Permalink
log-server: increase default select query limit
Browse files Browse the repository at this point in the history
  • Loading branch information
QuentinRoy committed Jan 31, 2024
1 parent 634945b commit bb66c06
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/log-server/src/store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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');

Expand Down Expand Up @@ -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');
Expand Down

0 comments on commit bb66c06

Please sign in to comment.