-
Notifications
You must be signed in to change notification settings - Fork 95
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
Add switch to choose listkeys or fold_objects in storage calclation #1089
Conversation
%% when scanning the whole bucket. | ||
-spec use_2i_for_storage_calc() -> boolean(). | ||
use_2i_for_storage_calc() -> | ||
riak_cs_list_objects_utils:fold_objects_for_list_keys() |
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 setting item is already deprecated one. Should we care about it?
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.
The deprecation plan is to mention in 2.0 release notes and remove the code later, like late 2.0.x or 2.1. That's why I still hold this config.
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.
Actually, this was to ensure Riak is later than 1.4 - having 2i <<"key">>
index and return_value=true
in vnode folding. CS can know this thanks to riak_pb_csbucket
.
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.
OK, understood.
Will the new configuration item go into cuttlefish schema? |
The reason why I still keep default value of |
I don't think we have to introduce this configuration in riak-cs.conf. |
Ready for review again. |
Understood. I won't test |
Not disk intensive, but did micro benchmark on my laptop, with riak_ee 2.0 branch and got similar results as you had.
|
riak_test passed with riak_ee 2.0 branch. |
…-rebased Add switch to choose listkeys or fold_objects in storage calclation Reviewed-by: shino
@borshop merge |
Memo: The change basho/riak_kv#1072 is included in Riak 2.0.6 and 2.1.0+. |
Rebased version of and supersedes #1051 (RCS-34).