Skip to content

CXXCBC-646: Do not copy configuration when the operation depends on it#713

Merged
avsej merged 1 commit intocouchbase:release-1.0from
avsej:rel-1.0-CXXCBC-646-fix-performance-issue-with-replicas
Feb 14, 2025
Merged

CXXCBC-646: Do not copy configuration when the operation depends on it#713
avsej merged 1 commit intocouchbase:release-1.0from
avsej:rel-1.0-CXXCBC-646-fix-performance-issue-with-replicas

Conversation

@avsej
Copy link
Copy Markdown
Member

@avsej avsej commented Feb 14, 2025

For performance reasons, store bucket configuration as shared pointer, and copy it instead. The SDK can use shared pointer here, as configuration is readonly, and only access to the pointer have to be protected by the mutex

@avsej avsej requested review from a team and mikereiche February 14, 2025 01:32
@avsej avsej force-pushed the rel-1.0-CXXCBC-646-fix-performance-issue-with-replicas branch 2 times, most recently from ae4889d to 83db886 Compare February 14, 2025 04:31
For performance reasons, store bucket configuration as shared pointer,
and copy it instead. The SDK can use shared pointer here, as
configuration is readonly, and only access to the pointer have to be
protected by the mutex
@avsej avsej force-pushed the rel-1.0-CXXCBC-646-fix-performance-issue-with-replicas branch from 83db886 to fade09f Compare February 14, 2025 04:48
Copy link
Copy Markdown
Contributor

@thejcfactor thejcfactor left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

@avsej avsej merged commit 2dfcdc6 into couchbase:release-1.0 Feb 14, 2025
@avsej avsej deleted the rel-1.0-CXXCBC-646-fix-performance-issue-with-replicas branch February 14, 2025 19:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants