-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Journaling and Recovery
LiteDB is an ACID (Atomicity, Consistency, Isolation, Durability) database, so your data operations are always consistent across concurrency access.
In v4, there is no more external journal file. Dirty pages are saved first in extended area on same data file, but after ends used position. With this change, LiteDB runs faster because there are no 2 files to open/lock/close. Working with a single file is better than works with two.
To guarantee data integrity and fail tolerance, LiteDB use this extended area in your file to write all changes before write on right data position.
Journaling is enabled by default. You can disable on string connection to get a fast write operations with some risk!
var db = new LiteDatabase("filename=mydata.db; journal=false");
Data Modeling
- Data Structure
- BsonDocument
- Object Mapping
- Relationships with Document References
- Collections
- FileStorage
Index
Query
Database
Version 4 changes
Shell