File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -278,7 +278,7 @@ export const MEMPOOL_PROCESS_DELAY = 100
278278export const CHRONIK_FETCH_N_TXS_PER_PAGE = 200
279279export const INITIAL_ADDRESS_SYNC_FETCH_CONCURRENTLY = 10
280280export const TX_EMIT_BATCH_SIZE = 500
281- export const TRANSFORM_TX_FROM_CHRONIK_BATCH_SIZE = 50
281+ export const TRANSFORM_TX_FROM_CHRONIK_BATCH_SIZE = 10
282282export const DB_COMMIT_BATCH_SIZE = 500
283283
284284export const TRIGGER_POST_CONCURRENCY = 100
Original file line number Diff line number Diff line change @@ -2,12 +2,13 @@ import { PrismaClient } from '@prisma/client'
22
33let prisma : PrismaClient
44
5- const CONNECTION_LIMIT = 20
5+ const CONNECTION_LIMIT = 50
6+ const POOL_TIMEOUT = 30
67
78function buildDatasourceUrl ( ) : string {
89 const baseUrl = process . env . DATABASE_URL ?? ''
910 const separator = baseUrl . includes ( '?' ) ? '&' : '?'
10- return `${ baseUrl } ${ separator } connection_limit=${ CONNECTION_LIMIT } `
11+ return `${ baseUrl } ${ separator } connection_limit=${ CONNECTION_LIMIT } &pool_timeout= ${ POOL_TIMEOUT } `
1112}
1213
1314interface CustomNodeJsGlobal extends NodeJS . Global {
You can’t perform that action at this time.
0 commit comments