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({