Skip to content

Disable RavenDB storage prefetching by default - #5832

Merged
ramonsmits merged 1 commit into
masterfrom
ramon/ravendb-disable-prefetching
Sep 2, 2026
Merged

ramonsmits merged 1 commit into
masterfrom
ramon/ravendb-disable-prefetching

Conversation

@ramonsmits

Copy link
Copy Markdown
Member

During load testing we notices that RavenDB does a lot of read IO. This is caused due to prefetching. We tested with disabling prefetching and index rate remained pretty much identical, ingestion rate slightly improved but read IO was reduced over 5x.

Storage.EnablePrefetching is a server-wide-only RavenDB setting that defaults to true. ServiceControl now disables it by default:

  • Embedded mode (Primary and Audit): --Storage.EnablePrefetching=false is passed via ServerOptions.CommandLineArgs
  • Container image (servicecontrol-ravendb): RAVEN_Storage_EnablePrefetching=false is set as an image ENV, which users can still override

Storage.EnablePrefetching is a server-wide-only RavenDB setting that defaults to true. ServiceControl now disables it by default:

- Embedded mode (Primary and Audit): --Storage.EnablePrefetching=false is passed via ServerOptions.CommandLineArgs
- Container image (servicecontrol-ravendb): RAVEN_Storage_EnablePrefetching=false is set as an image ENV, which users can still override
@ramonsmits
ramonsmits marked this pull request as ready for review September 2, 2026 13:43
@ramonsmits

Copy link
Copy Markdown
Member Author

Local docker image build tested with Podman and confirmed this in RavenDB studio server settings.

@ramonsmits
ramonsmits merged commit dedfbc3 into master Sep 2, 2026
98 of 104 checks passed
@ramonsmits
ramonsmits deleted the ramon/ravendb-disable-prefetching branch September 2, 2026 15:50
@ramonsmits ramonsmits added this to the 6.20.0 milestone Sep 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants