Skip to content

Commit

Permalink
[#25397] docdb: Added rocksdb_iterator_sequential_disk_reads_factor flag
Browse files Browse the repository at this point in the history
Summary:
It turned out that for some cases (for example block-based sampling for ANALYZE) we can get better performance if we don't reset readahead state even when scan is not strictly sequential but skipping some amount of data.

Added rocksdb_iterator_sequential_disk_reads_factor flag which allows to relax requirements for treating disk read as sequential for readahead purposes. Set to 1 by default (old behaviour is equivalent of 0).
Jira: DB-14628

Test Plan: ybd --cxx-test readahead_test -n 50 -- -p 1 for release/debug/asan/tsan builds

Reviewers: arybochkin

Reviewed By: arybochkin

Subscribers: ybase

Tags: #jenkins-ready

Differential Revision: https://phorge.dev.yugabyte.com/D40831
  • Loading branch information
ttyusupov committed Dec 23, 2024
1 parent af0b1ee commit b153480
Show file tree
Hide file tree
Showing 2 changed files with 244 additions and 146 deletions.
Loading

0 comments on commit b153480

Please sign in to comment.