Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When I execute db.commit() I get an alarm:Could not delete file: #1041

Open
tianyawenke opened this issue Feb 5, 2024 · 1 comment
Open

Comments

@tianyawenke
Copy link

tianyawenke commented Feb 5, 2024

Here's my parameter configuration:

DB db = DBMaker .fileDB("db/my_20240205.db") .fileMmapEnable() .closeOnJvmShutdown() .checksumHeaderBypass() .transactionEnable() .make();

When I execute db.commit() I get an alarm:

org.mapdb.volume.Volume deleteFile
warn: Could not delete file: db\my_20240205.db.wal.0

My environment information: Windows 10, the program started with the administrator user right.

My goal is to add, delete, and change multiple maps, commit a transaction, or roll back after any problems, all of which must succeed or fail.
What should I do?

@tianyawenke
Copy link
Author

When I don't turn on the transaction, performance: 2us
After the transaction is enabled, it may also be the cause of the alarm, and the performance drops to tens of us. I have called db.commit() once every time I modified a batch of data, am I doing something wrong? I hope that the performance will be close to when it is not turned on after opening the transaction.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant