From 2ddf54b7265c197e05ee0f7bbad5c8d966fb8d6e Mon Sep 17 00:00:00 2001 From: "ITHQ1861\\linoy.gopal" Date: Mon, 14 Feb 2022 12:39:27 +0530 Subject: [PATCH] #fixes approximate cache size configuration --- src/utils/queue/BulkDataWriteQueue.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/queue/BulkDataWriteQueue.ts b/src/utils/queue/BulkDataWriteQueue.ts index ccafcc4b..69e6be61 100644 --- a/src/utils/queue/BulkDataWriteQueue.ts +++ b/src/utils/queue/BulkDataWriteQueue.ts @@ -4,7 +4,7 @@ import { BulkDataWriteSlaveQueue } from "./Queue" import { Mutex } from "async-mutex" const clientLock = new Mutex() const Max_Store_Size = !!process.env.CACHE_SIZE - ? (Number(process.env.CACHE_SIZE) === 0 + ? (Number(process.env.CACHE_SIZE) < 100 ? 100 : Number(process.env.CACHE_SIZE)) : 30000