apurtell opened a new pull request, #2672: URL: https://github.com/apache/phoenix/pull/2672
`UncoveredGlobalIndexRegionScanner`'s constructor calls `getRegionLocator(dataTable).getEndKeys()`. In HBase 2.x, `HRegionLocator.getEndKeys()` scans the meta rows of every region of the data table without using the region location cache. This cost is incurred for for every index region in every query that uses an uncovered global index, or a covered index with a server merge. Each scan does a full meta scan of the data table before it reads a row. The cost grows with the number of data table regions, and it puts load on the region server that hosts meta. Scanners should not reload the region boundaries when it opens. For each page of data row keys, they should instead find the enclosing region with `RegionLocator.getRegionLocation(row)`, which uses the location cache. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
