You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@phoenix.apache.org by Skanda <sk...@gmail.com> on 2014/02/12 19:46:18 UTC

Composite rowkey and salting

Hi
Assume I have a table with composite keys, say (x,y) salted into 3 buckets.
I understand that the salt is prepended to the actual rowkey. Now when I
try to lookup the table for x, will phoenix still do a range scan in 3
regions to fetch the result? How is the hash derived, using x or x,y?
Ideally I want to specify the hash component of the composite key,in this
case x thereby ensuring identical x's fall into the same region.Is it
possible in phoenix?

Regards,
Skanda

Re: Composite rowkey and salting

Posted by James Taylor <ja...@apache.org>.
Hi Skanda,
Yes, there was actually a bug here that was preventing a point lookup for
salted tables: https://issues.apache.org/jira/browse/PHOENIX-20

It's been fixed and is in our release candidate build for 2.2.3. Would be
great if you could verify that this solves your issue.

Thanks,
James


On Wed, Feb 12, 2014 at 10:46 AM, Skanda <sk...@gmail.com> wrote:

> Hi
> Assume I have a table with composite keys, say (x,y) salted into 3
> buckets. I understand that the salt is prepended to the actual rowkey. Now
> when I try to lookup the table for x, will phoenix still do a range scan in
> 3 regions to fetch the result? How is the hash derived, using x or x,y?
> Ideally I want to specify the hash component of the composite key,in this
> case x thereby ensuring identical x's fall into the same region.Is it
> possible in phoenix?
>
> Regards,
> Skanda
>