You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by "jojochuang (via GitHub)" <gi...@apache.org> on 2026/09/01 00:44:57 UTC
Re: [PR] HDDS-16229. Add RocksDB multiGetSkipCache for batched table reads. [ozone]
jojochuang commented on code in PR #11068:
URL: https://github.com/apache/ozone/pull/11068#discussion_r3899732144
##########
hadoop-hdds/framework/src/main/java/org/apache/hadoop/hdds/utils/db/RDBTable.java:
##########
@@ -122,10 +124,32 @@ public byte[] get(byte[] key) throws RocksDatabaseException {
return db.get(family, key);
}
+ @Override
+ public List<byte[]> multiGetSkipCache(List<byte[]> keys) throws RocksDatabaseException {
+ if (keys == null || keys.isEmpty()) {
+ return Collections.emptyList();
+ }
+ for (byte[] ignored : keys) {
+ rdbMetrics.incNumDBKeyGets();
+ }
+ return db.multiGet(family, keys);
+ }
+
Integer get(ByteBuffer key, ByteBuffer outValue) throws RocksDatabaseException {
return db.get(family, key, outValue);
}
+ List<ByteBufferGetStatus> multiGetSkipCache(List<ByteBuffer> keys, List<ByteBuffer> values)
+ throws RocksDatabaseException {
+ if (keys == null || keys.isEmpty()) {
+ return Collections.emptyList();
+ }
+ for (ByteBuffer ignored : keys) {
+ rdbMetrics.incNumDBKeyGets();
Review Comment:
yeah makes sense. Though comparing to RocksDB I/O this is probably negligible impact.
--
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: issues-unsubscribe@ozone.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org