Re: Row count

2018-01-11 Thread Flavio Pompermaier
to be deterministic in normal scenarios. can > you elaborate what is the difference you see after HBase restarted? > > bq. SELECT SUM(GUIDE_POSTS_ROW_COUNT) from SYSTEM.STATS WHERE > PHYSICAL_NAME = 'MYTABLE'; > > We calculate row count till the guidePosts is fou

Re: Efficient way to get the row count of a table

2017-12-20 Thread Jins George
/hbase.apache.org/apidocs/org/apache/hadoop/hbase/mapreduce/RowCounter.html M/R. On Tue, Dec 19, 2017 at 3:18 PM, James Taylor mailto:jamestay...@apache.org>> wrote: If it needs to be 100% accurate, then count(*) is the only way. If your data is write-once data, you might be able to track th

Re: Efficient way to get the row count of a table

2017-12-19 Thread James Taylor
ache.org/apidocs/org/apache/hadoop/hbase/mapreduce/RowCounter.html> > http://hbase.apache.org/apidocs/org/apache/hadoop/hbase/ > mapreduce/RowCounter.html M/R. > > On Tue, Dec 19, 2017 at 3:18 PM, James Taylor > wrote: > >> If it needs to be 100% accurate, then count(

Re: Efficient way to get the row count of a table

2017-12-19 Thread Jins George
way. If your data is write-once data, you might be able to track the row count at the application level through some kind of atomic counter in a different table (but this will likely be brittle). If you can live with an estimate, you could enable statistics [1], optionally

Re: Efficient way to get the row count of a table

2017-12-19 Thread Mujtaba Chohan
might be able to track the row count at the > application level through some kind of atomic counter in a different table > (but this will likely be brittle). If you can live with an estimate, you > could enable statistics [1], optionally configuring Phoenix not to use > stats for parall

Re: Efficient way to get the row count of a table

2017-12-19 Thread James Taylor
If it needs to be 100% accurate, then count(*) is the only way. If your data is write-once data, you might be able to track the row count at the application level through some kind of atomic counter in a different table (but this will likely be brittle). If you can live with an estimate, you could

Efficient way to get the row count of a table

2017-12-19 Thread Jins George
Hi, Is there a way to get the total row count of a phoenix table without running select count(*) from table ? my use case is to monitor the record count in a table every x minutes, so didn't want to put load on the system by running a select count(*) query. Thanks, Jins George

Re: Row count

2017-09-13 Thread Ankit Singhal
= 'MYTABLE'; We calculate row count till the guidePosts is found in the region and no count will be stored for a region having a size not enough for guidepost width or remaining region after the last guidePosts. so this row_count should not be used against actual count. On Wed, Sep 13, 201

Row count

2017-09-13 Thread Flavio Pompermaier
Hi to all, I'm trying to investigate the best option to have get the row count out of a table. I've tried the following: 1. SELECT COUNT(*) FROM MYTABLE 1. very slow without an index, very quick with an index 2. however the result could be non-deterministic if HBas