From 5d4634a67a40ea3e9d60be59f8cfbf87fcfe9625 Mon Sep 17 00:00:00 2001 From: Diana Barsan <35681649+dianabarsan@users.noreply.github.com> Date: Tue, 26 Nov 2024 15:51:59 +0300 Subject: [PATCH] perf(#9642): upgrade CouchDb to v3.4.2 (#9651) set `changes_doc_ids_optimization_threshold` a high value #9642 --- couchdb/10-docker-default.ini | 1 + couchdb/Dockerfile | 2 +- tests/integration/api/routing.spec.js | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/couchdb/10-docker-default.ini b/couchdb/10-docker-default.ini index 92e42a2863e..8c924a92d54 100644 --- a/couchdb/10-docker-default.ini +++ b/couchdb/10-docker-default.ini @@ -11,6 +11,7 @@ os_process_timeout = 60000 max_dbs_open = 5000 attachment_stream_buffer_size = 16384 max_document_size = 4294967296 ; 4 GB +changes_doc_ids_optimization_threshold = 40000 [chttpd] port = 5984 diff --git a/couchdb/Dockerfile b/couchdb/Dockerfile index 2baa33c424a..2afba060d56 100644 --- a/couchdb/Dockerfile +++ b/couchdb/Dockerfile @@ -1,4 +1,4 @@ -FROM couchdb:3.3.3 as base_couchdb_build +FROM couchdb:3.4.2 as base_couchdb_build COPY --chown=couchdb:couchdb 10-docker-default.ini /opt/couchdb/etc/default.d/ COPY --chown=couchdb:couchdb vm.args /opt/couchdb/etc/ diff --git a/tests/integration/api/routing.spec.js b/tests/integration/api/routing.spec.js index dcbbad60fc4..4191f742682 100644 --- a/tests/integration/api/routing.spec.js +++ b/tests/integration/api/routing.spec.js @@ -403,7 +403,7 @@ describe('routing', () => { if (idx === 0) { // online user request expect(result.limit).to.equal(1); - expect(result.fields).to.equal('all_fields'); + expect(result.fields).to.deep.equal([]); } else { // offline user requests expect(result.statusCode).to.equal(403);