From 67f3d077fd32086c67b16059383e289a765467c5 Mon Sep 17 00:00:00 2001 From: Wing-Kam Wong Date: Fri, 10 Jun 2022 12:48:27 +0800 Subject: [PATCH] enhancement: allow custom limit values --- .../src/lib/db/sql-data-mapper/lib/sql/BaseModelSqlv2.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/nocodb/src/lib/db/sql-data-mapper/lib/sql/BaseModelSqlv2.ts b/packages/nocodb/src/lib/db/sql-data-mapper/lib/sql/BaseModelSqlv2.ts index df786b6ec3..95fad14015 100644 --- a/packages/nocodb/src/lib/db/sql-data-mapper/lib/sql/BaseModelSqlv2.ts +++ b/packages/nocodb/src/lib/db/sql-data-mapper/lib/sql/BaseModelSqlv2.ts @@ -70,9 +70,9 @@ class BaseModelSqlv2 { private _columns = {}; private config: any = { - limitDefault: 25, - limitMin: 1, - limitMax: 1000 + limitDefault: process.env.DB_QUERY_LIMIT_DEFAULT || 25, + limitMin: process.env.DB_QUERY_LIMIT_MIN || 1, + limitMax: process.env.DB_QUERY_LIMIT_MAX || 1000 }; constructor({