what are log files and why they are created during transaction in berkeleydb core api(dbapi)?

拈花ヽ惹草 提交于 2020-01-16 06:47:47

问题


We are using BerkeleyDB Java edition, core api to read/write cdrfiles, we are having a problem with log files.

When we are writing 9lack records to database then multiples log files are created with huge sizes, 1.08gb. We want to know why multiple logfiles are created while using transaction , is it due to every commit statement after writing data to database ? or is there any other reason ?


回答1:


This is normal. The log files contains ongoing tranactions, as well as information you can use for recovering the database (which means they're suitable to use as backup and disaster recovery).

Read chapter 5 of the documentation carefully, as well as this section which explains the periodic maintenance you need to do on your database.



来源:https://stackoverflow.com/questions/6648463/what-are-log-files-and-why-they-are-created-during-transaction-in-berkeleydb-cor

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!