kerneltime opened a new pull request, #4650:
URL: https://github.com/apache/ozone/pull/4650
## What changes were proposed in this pull request?
When listing keys in FSO, there is no need to seek first if the prefix is
provided.
Constructor for RDB Store seeks first if the prefix is not set. ListKeys
calls in FSO should forward the prefix to the constructor to avoid wastefully
seeks.
```
public RDBStoreIterator(ManagedRocksIterator iterator, RDBTable table,
byte[] prefix) {
this.rocksDBIterator = iterator;
this.rocksDBTable = table;
if (prefix != null) {
this.prefix = Arrays.copyOf(prefix, prefix.length);
}
seekToFirst();
}
```
This is related to https://issues.apache.org/jira/browse/HDDS-8289 but not
be sufficient to improve the entire performance issue but should help.
## What is the link to the Apache JIRA
https://issues.apache.org/jira/browse/HDDS-8289
## How was this patch tested?
Existing tests should cover this.
--
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]