File Details
Ledger 2.0.0
- R
- Jan 10, 2026
- 12.42 MB
- 1.5K
- 1.20.1
- Forge
File Name
ledger-2.0.0.jar
Supported Versions
- 1.20.1
Curse Maven Snippet
[2.0.0] - 2026-01-10 Major storage system overhaul - SQLite database implementation Added
- SQLite database storage system with indexed queries
- Automatic log cleanup scheduler (configurable retention period)
- Batch processing system for improved write performance
- WAL (Write-Ahead Logging) mode for crash safety
- Six optimized database indexes for fast lookups
- Cleanup command for manual database maintenance
- Database size monitoring and reporting
- Less Console spam when making entry's
Updated
- Storage backend migrated from JSON to SQLite
- LedgerManager with scheduled cleanup task (runs every 24 hours)
- LogEntry constructor to support timestamp deserialization
- Query performance: radius searches now 100x faster
Removed
- JSON file storage as primary backend (JsonStorage.java kept for reference)
- Full file rewrites every 10 entries
- In-memory entry list loading at startup
Changed
- File format: ledger.json → ledger.db (SQLite database)
- Write strategy: batch inserts every 100ms instead of immediate writes
- Default log retention: unlimited → 90 days (configurable)
- Disk I/O: reduced from 1000+ full file writes/hour to append-only batches
- Scalability: 500k max entries → 100M+ entries supported
Technical Details
- Added dependency: org.xerial:sqlite-jdbc:3.44.1.0
- Server compatibility: server-side only (no client required)
Migration Notes
- New installations will use SQLite by default
- Old JSON files can be safely deleted after verifying new system

