jankotek / jankotek/mapdb

RFE: allow unsafe MappedFileVol.ensureAvailable

Open
#604 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

4.0 diskIO enhancement optimize
Dominant language
Java
Stars
5.1k
Forks
877
PR merge metrics
No merged PRs in 30d

Description

I suggest to allow disable calling of raf.getFD().sync(); in MappedFileVol.ensureAvailable without MapDB recompilation.

'sync' will ENABLED by default.
My test case (on SSD):
sync ENABLED: 3min 50s
sync DISABLED: 2min 40s

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at MappedFileVol.ensureAvailable and inspect how raf.getFD().sync() is called. Determine how the sync behavior could be configured without recompiling MapDB, while keeping it enabled by default. Done means the option is available and the existing default behavior remains unchanged; use the SSD timing comparison in the issue as a performance reference.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
database
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.