Love the new feature, I have a couple of questions though.

First is the URL to PUT to, The example from the oscon presentation says to
PUT to

http://whatever:port/buckets/bucket_name/keys/key_name

rather than the old style URL e.g.

http://whatever:port/riak/bucket_name/key_name

I've noticed that after doing the put to the new style URL I can still get
from the old style URL, can I still PUT to the old style URL with an index?
I can easily accept that doing a query on an index would involve a different
URL, but having the PUT URL be potentially different from the GET URL is an
inconstancy I'd like to avoid if possible.

Second is the return value of get_index in the erlang pb client.  It returns
in the format of...

[[<<"bucket">>,<<"key1">>],
     [<<"bucket">>,<<"key2">>],
     [<<"bucket">>,<<"key3">>],
...

But map reduce takes keys in a different format:

[{<<"bucket">>,<<"key1">>},
     {<<"bucket">>,<<"key2">>},
     {<<"bucket">>,<<"key3">>}
...

Its not that its difficult to convert from one format to the other, but its
inconsistent, and it seems like a waste of time (i.e. have to run through
list of keys to convert). My first question is, am I missing something?
 i.e. will the first format work anyway?

If not, then can get_index() be changed to generate its results as a list of
bucket/key tuples instead of a list of lists in the first place?

Thanks!
_______________________________________________
riak-users mailing list
riak-users@lists.basho.com
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com

Reply via email to