Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update ForestDB to get improved compaction / space reuse #112

Closed
snej opened this issue Oct 24, 2016 · 3 comments
Closed

Update ForestDB to get improved compaction / space reuse #112

snej opened this issue Oct 24, 2016 · 3 comments

Comments

@snej
Copy link
Contributor

snej commented Oct 24, 2016

In CBSE-3058 Sundar wrote:

ForestDB circular block reuse … was designed to solve exactly this type of small-batch-write-space-explosion problem ... The feature was done around December 2015 and was first shipped in 4.5 Couchbase Server watson release. It has been tested extensively by secondary index use cases for both 4.5.1 as well as 4.6 releases. Among other things I believe that it should significantly benefit many mobile device use cases simply because it cuts down the app's write amplification by half.

All we need to do is pull the ForestDB stable branch to the latest. And test...

@snej
Copy link
Contributor Author

snej commented Oct 25, 2016

Looks like CBForest is already on the current stable commit of forestdb (0e439d55), as of Hideki's commit 7dbcb90 from Sept 13.

I don't know if that means it's already using circular block reuse; I'd guess it has to be enabled explicitly somehow. I'll look at the headers.

@snej
Copy link
Contributor Author

snej commented Oct 25, 2016

Actually it seems to be enabled by default. Fortunately we haven't released any versions of CBL since this stealth upgrade :)

@pasin
Copy link
Contributor

pasin commented Nov 18, 2016

ForestDB team has identified the issue and fixed it.

See https://issues.couchbase.com/browse/MB-21656 for more detail.

@pasin pasin closed this as completed Nov 18, 2016
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

No branches or pull requests

2 participants