[
https://issues.apache.org/jira/browse/PHOENIX-6767?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17604863#comment-17604863
]
ASF GitHub Bot commented on PHOENIX-6767:
-----------------------------------------
chrajeshbabu commented on code in PR #1493:
URL: https://github.com/apache/phoenix/pull/1493#discussion_r971096883
##########
phoenix-core/src/main/java/org/apache/phoenix/iterate/BaseResultIterators.java:
##########
@@ -929,12 +929,19 @@ private static boolean clipKeyRangeBytes(RowKeySchema
schema, int fieldIndex, in
* @throws SQLException
*/
private List<List<Scan>> getParallelScans(byte[] startKey, byte[] stopKey)
throws SQLException {
- List<HRegionLocation> regionLocations =
getRegionBoundaries(scanGrouper);
- List<byte[]> regionBoundaries = toBoundaries(regionLocations);
ScanRanges scanRanges = context.getScanRanges();
PTable table = getTable();
- boolean isSalted = table.getBucketNum() != null;
boolean isLocalIndex = table.getIndexType() == IndexType.LOCAL;
+ if(!isLocalIndex && scanRanges.isPointLookup()) {
Review Comment:
Done.
> Traversing through all the guideposts to prepare parallel scans is not
> required for salted tables when the query is point lookup
> --------------------------------------------------------------------------------------------------------------------------------
>
> Key: PHOENIX-6767
> URL: https://issues.apache.org/jira/browse/PHOENIX-6767
> Project: Phoenix
> Issue Type: Improvement
> Reporter: Rajeshbabu Chintaguntla
> Assignee: Rajeshbabu Chintaguntla
> Priority: Major
> Fix For: 5.2.0
>
>
> Currently even when the query is point lookup on salted table we are
> traversing through region boundaries or guideposts to create parallel scans
> which is not required and adding overhead to point lookup queries even we
> know the exact region or guide post need to be scanned to find the results.
> When the guide posts are high or number of regions are high leading higher
> latencies for point lookup query.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)