orientechnologies / orientechnologies/orientdb
disable WAL for plocal database
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 5k
- Forks
- 868
- Avg merge
- 15h 6m
- Merged PRs (30d)
- 18
Description
OrientDB Version: 3.2.7
Java Version: 11
OS: Mac OSx
I have a plocal database as part of a Kotlin application. I would like to disable the WAL journal but I still see the WAL file growing in the db folder.
Here is my code:
private val orientGraphFactory = OrientGraphFactory("plocal:.databases/graph-repo-$id")
.setupPool(1, 10)
.also {
it.setUseLightweightEdges(true)
val db = it.database
db.createEdgeClass("child")
val node = db.createVertexClass("Node")
node.createProperty("_path", OType.STRING).createIndex(OClass.INDEX_TYPE.UNIQUE_HASH_INDEX)
node.createProperty("_pType", OType.STRING)
}
I tried the following:
- start the app using
-Dstorage.useWAL=false - add a call to
OGlobalConfiguration.USE_WAL.setValue(false)before db init code
Am I doing anything wrong there? Is there any way to programmatically force to NOT use the WAL?
Thanks!
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with OGlobalConfiguration.USE_WAL, the storage.useWAL system property, and the OrientGraphFactory database initialization shown in the issue. Reproduce the configuration with a plocal database and trace whether the setting reaches storage initialization; done when WAL is reliably disabled or the supported limitation is documented.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java, kotlin
- Domain
- databases
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100