-
Notifications
You must be signed in to change notification settings - Fork 76
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
check if datatype or sc, skip del operation in put path #457
Conversation
@seancribbs benchmarks: local runsThe consolidated fix seems to work well.
Here's Drew's work that he did initially on some powerful machines and just removing the delete operation altogether:
|
What is meant by "mean 95th"? Is that actually the average of the 95th percentile? (Same goes for median.) Are there basho_bench graphs? |
Bucket = riak_object:bucket(Obj), | ||
case riak_core_bucket:get_bucket(Bucket) of | ||
BProps when is_list(BProps) -> | ||
case is_datatype(BProps) of |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This whole case expression can be simplifed to:
is_datatype(BProps) orelse lists:member({consistent, true}, BProps)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
derp on me... totally right.
@seancribbs was using the scripts that Ryan had been using in https://github.com/basho/yokozuna/tree/develop/misc/bench/bin (and documented in https://github.com/basho/yokozuna/blob/develop/docs/BENCHMARKING.md). And, yes, If you want I could showcase some graphs, but I thought to use what we had been doing previously. |
58dce67
to
1580c38
Compare
1580c38
to
263c265
Compare
@seancribbs new/different runs (same config), but showcasing the graphs. developw/ perf update |
👍 263c265 I'm convinced this is a significant-enough change. Good work! |
…f-crdt-sc check if datatype or sc, skip del operation in put path Reviewed-by: seancribbs
@borshop merge |
Fixes https://bashoeng.atlassian.net/browse/RIAK-1504 (#452).
Initial comments/PR #452.
Improves performance by avoiding an extra delete operation to remove siblings through Solr on the put path when riak datatypes or strong consistency is used. Initial patch/issue was discovered by @drewkerrigan, https://github.com/basho-labs/yokozuna_perf_patch.