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

fix(compaction): Don't use cache for table compaction #1467

Merged
merged 26 commits into from
Aug 20, 2020

Conversation

jarifibrahim
Copy link
Contributor

@jarifibrahim jarifibrahim commented Aug 19, 2020

This PR adds support for disabling cache while doing compactions.
Compactions read the entire table and pushing all data through the cache
would unnecessarily evict everything from the cache.

Table Iterator options are represented as integers

REVERSE = 2
NOCACHE = 4 

The table.Block(...) call with not push the block in cache if NOCACHE is set.


This change is Reviewable

manishrjain and others added 26 commits August 11, 2020 09:25
 Conflicts:
	db.go
	levels.go
	options.go
	table/builder.go
	table/builder_test.go
	table/table.go
	value.go
@jarifibrahim jarifibrahim marked this pull request as ready for review August 20, 2020 11:22
Copy link
Contributor

@manishrjain manishrjain left a comment

Choose a reason for hiding this comment

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

:lgtm:

Reviewed 1 of 9 files at r3, 5 of 12 files at r4.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @ashish-goswami)

@jarifibrahim jarifibrahim merged commit a33ca5e into master Aug 20, 2020
@jarifibrahim jarifibrahim deleted the mrjn/compaction-nocache branch August 20, 2020 14:28
jarifibrahim pushed a commit that referenced this pull request Oct 2, 2020
This PR adds support for disabling cache while doing compactions.
Compactions read the entire table and pushing all data through the cache
would unnecessarily evict everything from the cache.

Table Iterator options are represented as integers
```
REVERSE = 2
NOCACHE = 4 
```
The `table.Block(...)` call with not push the block in cache if `NOCACHE` is set.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants