c4-rdarr db updates
This commit is contained in:
@@ -6,6 +6,35 @@ All notable changes to this project will be documented in this file.
|
||||
|
||||
# Changelog
|
||||
|
||||
## [0.5.0] - 2025-09-08
|
||||
|
||||
### Added
|
||||
- **Major Performance Enhancement**: Direct Radarr database access
|
||||
- New `RadarrDbClient` class for high-performance database queries
|
||||
- Support for both SQLite and PostgreSQL Radarr databases
|
||||
- Eliminates API pagination overhead for import date lookups
|
||||
- Up to 10x faster movie import date detection
|
||||
- **Bulk Operations**: Added bulk import date queries for multiple movies
|
||||
- **Database Configuration**: New environment variables for database connection
|
||||
- `RADARR_DB_TYPE` (sqlite/postgresql)
|
||||
- `RADARR_DB_HOST`, `RADARR_DB_PORT`, `RADARR_DB_NAME` for PostgreSQL
|
||||
- `RADARR_DB_USER`, `RADARR_DB_PASSWORD` for PostgreSQL authentication
|
||||
- `RADARR_DB_PATH` for SQLite databases
|
||||
- `RADARR_DB_URL` connection string support
|
||||
- **Testing Suite**: Added performance comparison test script (`test_db_performance.py`)
|
||||
|
||||
### Changed
|
||||
- **RadarrClient Enhanced**: Automatic database client initialization with API fallback
|
||||
- **Movie Lookup Optimization**: Database-first approach for movie IMDb ID resolution
|
||||
- **Import Date Detection**: Optimized SQL queries replace complex API event parsing
|
||||
- **Dependencies**: Added `psycopg2-binary` for PostgreSQL support
|
||||
|
||||
### Technical Details
|
||||
- Database queries use proper SQL joins for efficient data retrieval
|
||||
- Maintains full backward compatibility with API-only installations
|
||||
- Graceful fallback to API methods when database access is unavailable
|
||||
- Support for both connection strings and individual parameter configuration
|
||||
|
||||
## [0.4.1] - 2025-01-09
|
||||
|
||||
### Fixed
|
||||
|
||||
Reference in New Issue
Block a user