Conversation
javeme
left a comment
There was a problem hiding this comment.
Thanks for your contribution
...er/hugegraph-hbase/src/main/java/org/apache/hugegraph/backend/store/hbase/HbaseSessions.java
Outdated
Show resolved
Hide resolved
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #2364 +/- ##
============================================
- Coverage 65.88% 65.87% -0.02%
Complexity 826 826
============================================
Files 507 507
Lines 42073 42076 +3
Branches 5831 5832 +1
============================================
- Hits 27720 27716 -4
- Misses 11595 11608 +13
+ Partials 2758 2752 -6 ☔ View full report in Codecov by Sentry. |
| */ | ||
| default R scan(String table, byte[] prefix) { | ||
| return this.scan(table, prefix, true, prefix); | ||
| final Scan scan = new Scan().setRowPrefixFilter(prefix); |
There was a problem hiding this comment.
public Scan setRowPrefixFilter(byte[] rowPrefix) {
if (rowPrefix == null) {
this.setStartRow(HConstants.EMPTY_START_ROW);
this.setStopRow(HConstants.EMPTY_END_ROW);
} else {
this.setStartRow(rowPrefix);
this.setStopRow(this.calculateTheClosestNextRowKeyForPrefix(rowPrefix));
}
return this;
}calculateTheClosestNextRowKeyForPrefix(rowPrefix)
The core of this method accurately calculates stop row, thereby solving the problem of edge table query seek HFile filtering invalid key-value cells, thus reducing subgraph query p99.
There was a problem hiding this comment.
calculateTheClosestNextRowKeyForPrefix
calculateTheClosestNextRowKeyForPrefix() doesn't include for now?
There was a problem hiding this comment.
setRowPrefixFilter will call calculateTheClosestNextRowKeyForPrefix method
JackyYangPassion
left a comment
There was a problem hiding this comment.
some ci error need to fix
|
ci-cassandra failure is not related to this PR. log |
Purpose of the PR
Main Changes
Verifying these changes
Does this PR potentially affect the following parts?
Documentation Status
Doc - TODODoc - DoneDoc - No Need