From 684ef68cf6f5e72fb9496a0221c62b2dfe833405 Mon Sep 17 00:00:00 2001 From: karminski Date: Tue, 20 Feb 2024 00:05:26 +0800 Subject: [PATCH] REDOCE to 10MiB for action max data returns. --- src/actionruntime/common/utils.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/actionruntime/common/utils.go b/src/actionruntime/common/utils.go index 13093e27..ba49da2e 100644 --- a/src/actionruntime/common/utils.go +++ b/src/actionruntime/common/utils.go @@ -28,7 +28,7 @@ import ( ) const DEFAULT_QUERY_AND_EXEC_TIMEOUT = 120 * time.Second -const SQL_RESULT_MEMORY_LIMIT = 209715200 // 200 * 1024 * 1024 bytes +const SQL_RESULT_MEMORY_LIMIT = 10485760 // 200 * 1024 * 1024 bytes const SQL_RESULT_MEMORY_CHECK_SAMPLE = 1000 // check 1000 item bytes and calculate max item capacity func RetrieveToMap(rows *sql.Rows) ([]map[string]interface{}, error) {