Skip to content

Instantly share code, notes, and snippets.

@roidrage
Created June 17, 2011 07:47
Show Gist options
  • Select an option

  • Save roidrage/1031036 to your computer and use it in GitHub Desktop.

Select an option

Save roidrage/1031036 to your computer and use it in GitHub Desktop.
Find the size of a Riak object as stored on disk
{ok, C} = riak:local_client().
{ok, Obj} = C:get(<<"bucket">>, <<"key">>).
iolist_size(term_to_binary(Obj)).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment