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

storage/engine: reenable the Seek optimization #7016

Merged
merged 1 commit into from
Jun 2, 2016

Conversation

petermattis
Copy link
Collaborator

@petermattis petermattis commented Jun 2, 2016

Primarily affects conditional-put heavy transactions where there is an
existing value.

Fixes #6980.

name old time/op new time/op delta
Update1_Cockroach-8 356µs ± 2% 348µs ± 1% -2.42% (p=0.000 n=10+10)
Update10_Cockroach-8 647µs ± 2% 619µs ± 2% -4.33% (p=0.000 n=9+10)
Update100_Cockroach-8 2.92ms ± 2% 2.67ms ± 3% -8.54% (p=0.000 n=10+10)
Update1000_Cockroach-8 24.5ms ± 1% 22.3ms ± 2% -8.91% (p=0.000 n=10+10)


This change is Reviewable

@tamird
Copy link
Contributor

tamird commented Jun 2, 2016

LGTM

@@ -672,12 +672,16 @@ func (r *rocksDBBatch) flushMutations() {
if err := r.ApplyBatchRepr(r.builder.Finish()); err != nil {
panic(err)
}
// For a seek of the underlying iterator on the next Seek/ReverseSeek.
Copy link
Member

Choose a reason for hiding this comment

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

s/For/Force/?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Done. My grammar has deteriorated recently.

@tbg
Copy link
Member

tbg commented Jun 2, 2016

LGTM

Primarily affects conditional-put heavy transactions where there is an
existing value.

Fixes cockroachdb#6980.

name                    old time/op  new time/op  delta
Update1_Cockroach-8      356µs ± 2%   348µs ± 1%  -2.42%  (p=0.000 n=10+10)
Update10_Cockroach-8     647µs ± 2%   619µs ± 2%  -4.33%   (p=0.000 n=9+10)
Update100_Cockroach-8   2.92ms ± 2%  2.67ms ± 3%  -8.54%  (p=0.000 n=10+10)
Update1000_Cockroach-8  24.5ms ± 1%  22.3ms ± 2%  -8.91%  (p=0.000 n=10+10)
@petermattis petermattis merged commit 72a3f0e into cockroachdb:master Jun 2, 2016
@petermattis petermattis deleted the pmattis/iter-seek branch June 2, 2016 19:57
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