Add scripts for PostgreSQL migration and SQLite removal; update project references
- Introduced `publish-with-sql.ps1` to publish Jellyfin with SQL files. - Added `remove-sqlite.ps1` to facilitate the removal of SQLite dependencies for PostgreSQL-only deployment. - Created `rollback-to-net10.ps1` to revert .NET 11 changes back to .NET 10. - Implemented `test_api.py` for testing API interactions. - Added `verify-migration.ps1` to verify PostgreSQL migration steps. - Updated various `.csproj` files to include `Microsoft.Kiota.Abstractions` package. - Enhanced `JellyfinDbContext` to handle concurrency exceptions during save operations. - Updated tests to include new package references and ensure compatibility with changes.
This commit is contained in:
@@ -0,0 +1,40 @@
|
||||
@echo off
|
||||
REM Quick script to add ALL performance indexes (base + supplementary)
|
||||
|
||||
echo ========================================
|
||||
echo Add ALL Performance Indexes
|
||||
echo ========================================
|
||||
echo.
|
||||
echo This will create:
|
||||
echo - 18 base performance indexes
|
||||
echo - 5 supplementary indexes
|
||||
echo Total: 23 indexes
|
||||
echo.
|
||||
echo NOTE: This uses the database configured in db-config.ps1
|
||||
echo Current default: jellyfin_testsdata
|
||||
echo.
|
||||
echo This may take 10-30 minutes...
|
||||
echo.
|
||||
|
||||
REM Use PowerShell to load config and run
|
||||
powershell -Command ". .\db-config.ps1; & $PSQL_PATH -U $DB_USER -d $DB_NAME -f sql\all_performance_indexes.sql"
|
||||
|
||||
if %ERRORLEVEL% EQU 0 (
|
||||
echo.
|
||||
echo ========================================
|
||||
echo Success! All 23 indexes added.
|
||||
echo ========================================
|
||||
echo.
|
||||
echo Performance improvement: 70-90 percent faster!
|
||||
echo.
|
||||
echo Next: Restart Jellyfin
|
||||
echo.
|
||||
) else (
|
||||
echo.
|
||||
echo ========================================
|
||||
echo Failed to add indexes
|
||||
echo ========================================
|
||||
echo.
|
||||
)
|
||||
|
||||
pause
|
||||
Reference in New Issue
Block a user