orientechnologies / orientechnologies/orientdb

disable WAL for plocal database

Open
#9,840 3 comments 0 reactions 0 assignees View on GitHub

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

Open the contributing guide

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 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.