hbase-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jean-Daniel Cryans <jdcry...@apache.org>
Subject Re: quick get of number of rows in the table
Date Tue, 02 Feb 2010 21:59:36 GMT
Boris,

There is a quicker way but since we currently don't keep a count
somewhere, it's always about doing a full table scan.

See how the count is implemented in the shell to learn of the quicker
way. Specifically, look at bin/HBase.rb

J-D

On Tue, Feb 2, 2010 at 1:54 PM, Boris Aleksandrovsky <baleksan@gmail.com> wrote:
> Hi,
>
> Is there a way to retrieving the number of rows in the table without doing a
> complete scan and counting the number of returned results (via next())?
>
> --
> Thanks,
>
> Boris
>

Mime
View raw message