File tree Expand file tree Collapse file tree 3 files changed +4
-2
lines changed
Expand file tree Collapse file tree 3 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -20,6 +20,8 @@ JWT_SECRET_REFRESH_TOKEN=abacaba
2020# JWT secret for user's access token
2121JWT_SECRET_ACCESS_TOKEN = belarus
2222
23+ # max document could for one read request to the database
24+ MAX_DB_READ_BATCH_SIZE = 100000
2325
2426# JWT secret for signing tokens for processing billing requests
2527JWT_SECRET_BILLING_CHECKSUM = checksum_secret
Original file line number Diff line number Diff line change 11{
22 "name" : " hawk.api" ,
3- "version" : " 1.2.1 " ,
3+ "version" : " 1.2.2 " ,
44 "main" : " index.ts" ,
55 "license" : " BUSL-1.1" ,
66 "scripts" : {
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ const Event = require('../models/event');
77const { ObjectID } = require ( 'mongodb' ) ;
88const { composeEventPayloadByRepetition } = require ( '../utils/merge' ) ;
99
10- const MAX_DB_READ_BATCH_SIZE = 80000 ;
10+ const MAX_DB_READ_BATCH_SIZE = process . env . MAX_DB_READ_BATCH_SIZE ;
1111
1212/**
1313 * @typedef {import('mongodb').UpdateWriteOpResult } UpdateWriteOpResult
You can’t perform that action at this time.
0 commit comments