Optimize startup: skip series loading on every SeriesApp init
- SeriesApp now passes skip_load=True to SerieList - Prevents redundant data file loading on every startup - Series loaded once during setup via sync_series_from_data_files() - Removed obsolete _init_list_sync() and _init_list() methods - Updated documentation in ARCHITECTURE.md and README.md
This commit is contained in:
@@ -220,6 +220,10 @@ src/core/
|
||||
| `Serie` | Domain entity with `sanitized_folder` property for filesystem-safe names |
|
||||
| `SerieList` | Collection management with automatic folder creation using sanitized names |
|
||||
|
||||
**Initialization:**
|
||||
|
||||
`SeriesApp` is initialized with `skip_load=True` passed to `SerieList`, preventing automatic loading of series from data files on every instantiation. Series data is loaded once during application setup via `sync_series_from_data_files()` in the FastAPI lifespan, which reads data files and syncs them to the database. Subsequent operations load series from the database through the service layer.
|
||||
|
||||
Source: [src/core/](../src/core/)
|
||||
|
||||
### 2.4 Infrastructure Layer (`src/infrastructure/`)
|
||||
@@ -576,10 +580,10 @@ Source: [src/server/services/auth_service.py](../src/server/services/auth_servic
|
||||
|
||||
### 9.2 Password Requirements
|
||||
|
||||
- Minimum 8 characters
|
||||
- Mixed case (upper and lower)
|
||||
- At least one number
|
||||
- At least one special character
|
||||
- Minimum 8 characters
|
||||
- Mixed case (upper and lower)
|
||||
- At least one number
|
||||
- At least one special character
|
||||
|
||||
Source: [src/server/services/auth_service.py](../src/server/services/auth_service.py#L97-L125)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user