From 7ec2c3860bfc2bb69f39d31a6b775003af39acba Mon Sep 17 00:00:00 2001 From: Sam Rose Date: Thu, 14 Dec 2023 16:20:31 +0000 Subject: [PATCH 1/2] Optimise the performance of Writethrough.put. --- packages/backend-core/src/cache/writethrough.ts | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/packages/backend-core/src/cache/writethrough.ts b/packages/backend-core/src/cache/writethrough.ts index 24e519dc7f..5cafe418d7 100644 --- a/packages/backend-core/src/cache/writethrough.ts +++ b/packages/backend-core/src/cache/writethrough.ts @@ -56,11 +56,8 @@ async function put( const writeDb = async (toWrite: any) => { // doc should contain the _id and _rev const response = await db.put(toWrite, { force: true }) - output = { - ...doc, - _id: response.id, - _rev: response.rev, - } + output._id = response.id + output._rev = response.rev } try { await writeDb(doc) From e7606125b61647fbac2910bff229fcb9ee61c8cf Mon Sep 17 00:00:00 2001 From: Budibase Staging Release Bot <> Date: Thu, 14 Dec 2023 16:33:31 +0000 Subject: [PATCH 2/2] Bump version to 2.13.42 --- lerna.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lerna.json b/lerna.json index 962954db39..7d9ea19476 100644 --- a/lerna.json +++ b/lerna.json @@ -1,5 +1,5 @@ { - "version": "2.13.41", + "version": "2.13.42", "npmClient": "yarn", "packages": [ "packages/*",