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

options: enable read based compactions #1032

Merged

Conversation

aadityasondhi
Copy link
Contributor

This change enables read based compactions by default and sets the read
sampling threshold. This is based on the findings in
#29.

@cockroach-teamcity
Copy link
Member

This change is Reviewable

Copy link
Member

@itsbilal itsbilal left a comment

Choose a reason for hiding this comment

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

Think there should be two more changes:

  1. if samplingPeriod <= 0 { return } in iterator.go
  2. Change comment in options.go to say that a negative value disables read sampling.

Reviewed 1 of 1 files at r1.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @aadityasondhi)

This change enables read based compactions by default and sets the read
sampling threshold. This is based on the findings in
cockroachdb#29.
Copy link
Contributor Author

@aadityasondhi aadityasondhi left a comment

Choose a reason for hiding this comment

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

TFTR! Made the changes.

Reviewable status: 0 of 2 files reviewed, all discussions resolved (waiting on @itsbilal)

Copy link
Member

@itsbilal itsbilal 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 2 of 2 files at r2.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @aadityasondhi)

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.

3 participants