I need to get page view of product from start date to end date. So i design Hbase rowkey like this.
ProductId(md5)_productId_dateKey(yyyymmdd) d:pageview.
Example: productId is 1180560. The rowkey from 1st August to 30th August will be:
0f0e02e9e24c29ad2c2b28e37e4f250b_1180560_20150801
.....
0f0e02e9e24c29ad2c2b28e37e4f250b_1180560_20150830
So i will easily get product pageview for time range by scanning rowkey with start row, stop row
My questions are:
Does this design avoid hotspotting ?
The length of rowkey seem too long. Will it effect the performance ?.
Is there a way to shorten the rowkey and still ensure avoid hotspotting, collision.
Is there better design for this case ?