So if I do have a bucket that I regularly want a listing of the keys for (or
really that I want to access all of the objects) what is the recommend
procedure? Put the same 2i index on each object in the bucket and then do an
index query on it? Is doing a mapred operation specifying a bucket as the
input (instead of a list of key/value pairs) as bad as listing the keys in
the bucket?

--
Jeremy

--
Date: Thu, 1 Dec 2011 11:43:27 -0500
From: Reid Draper <[email protected]>
To: [email protected]
Subject: Re: repost: bucket key listing
Message-ID:
<CALpkfNjbcrQWpjY=ghk9vpppw6tdr6xirgtk1nfvfw8r0bn...@mail.gmail.com>
Content-Type: text/plain; charset="iso-8859-1"

It's worth noting that you can use an objects primary key as the source for
a 2i query. This is helpful if you want a known range of keys in a bucket.
http://wiki.basho.com/Secondary-Indexes.html#Special-Fields

Reid

On Thu, Dec 1, 2011 at 11:37 AM, Andrew Thompson <[email protected]> wrote:

> I think if you disable legacy keylisting, we'll just break a limb now.
> 
> Seriously though, keylists are at least non-blocking in 1.0, so the
> vnodes aren't prevented from doing any reads/writes while the keylist is
> running. However, remember that a keylist of any kind that isn't on a
> single vnode (the way riak does keylists internally is all per vnode)
> requires a traversal of ALL the keyspace, even if your bucket only has
> 10 things in it.
> 
> Andrew
> 
> _______________________________________________
> riak-users mailing list
> [email protected]
> http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com
> 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
<http://lists.basho.com/pipermail/riak-users_lists.basho.com/attachments/201
11201/4d7a9607/attachment-0001.html>

------------------------------

_______________________________________________
riak-users mailing list
[email protected]
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com


_______________________________________________
riak-users mailing list
[email protected]
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com

Reply via email to