[
https://issues.apache.org/jira/browse/PHOENIX-1453?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14276493#comment-14276493
]
James Taylor commented on PHOENIX-1453:
---------------------------------------
If midEndIndex is 0, then we only track the righthand side in the stats and
never end up using leftByteCount and leftRowCount.
{code}
if (midEndIndex > 0) {
- GuidePostsInfo lguidePosts = new
GuidePostsInfo(byteSize, guidePosts.getGuidePosts().subList(0, midEndIndex));
- tracker.clear();
- tracker.addGuidePost(cfKey, lguidePosts, byteSize,
cell.getTimestamp());
+ GuidePostsInfo lguidePosts = new
GuidePostsInfo(leftByteCount, guidePostsRegionInfo
+ .getGuidePosts().subList(0, midEndIndex),
leftRowCount);
+ tracker.clear();
+ tracker.addGuidePost(cfKey, lguidePosts, leftByteCount,
cell.getTimestamp());
addStats(l.getRegionName(), tracker, cfKey, mutations);
}
{code}
> Collect row counts per region in stats table
> --------------------------------------------
>
> Key: PHOENIX-1453
> URL: https://issues.apache.org/jira/browse/PHOENIX-1453
> Project: Phoenix
> Issue Type: Sub-task
> Reporter: James Taylor
> Assignee: ramkrishna.s.vasudevan
> Attachments: Phoenix-1453.patch, Phoenix-1453_1.patch,
> Phoenix-1453_10.patch, Phoenix-1453_13.patch, Phoenix-1453_15.patch,
> Phoenix-1453_17.patch, Phoenix-1453_18.patch, Phoenix-1453_2.patch,
> Phoenix-1453_20.patch, Phoenix-1453_3.patch, Phoenix-1453_7.patch,
> Phoenix-1453_8.patch, Phoenix-1453_addendum.patch
>
>
> We currently collect guideposts per equal chunk, but we should also capture
> row counts. Should we have a parallel array with the guideposts that count
> rows per guidepost, or is it enough to have a per region count?
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)