lizhanhui commented on PR #8766:
URL: https://github.com/apache/rocketmq/pull/8766#issuecomment-2487854123

   > @lizhanhui I found no difference between batch and single get key from 
rocksdb. I will remove prefetch code. Batch: QueryCQ iter 10489877 cost 20527 
QueryCQ iter 10489877 cost 19496 QueryCQ iter 10489877 cost 19395
   > 
   > Single: QueryCQ iter 10489877 cost 20313 QueryCQ iter 10489877 cost 19196 
QueryCQ iter 10489877 cost 18945
   
   Take a look at this blog, MultiGet has quite a few optimizations available, 
we shall have two options to investigate:
   1, Simulated manual iterator with multi-get in the background, to prefetch 
accordingly;
   2, Use RocksDB embedded Iterator;
   https://rocksdb.org/blog/2022/10/07/asynchronous-io-in-rocksdb.html
   


-- 
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: commits-unsubscr...@rocketmq.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to