9bcb8501ab
- 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.
38 lines
1005 B
Batchfile
38 lines
1005 B
Batchfile
@echo off
|
|
REM Add missing base performance indexes to Jellyfin database
|
|
|
|
echo ========================================
|
|
echo Add Base Performance Indexes
|
|
echo ========================================
|
|
echo.
|
|
echo These indexes were missing from InitialCreate
|
|
echo Adding 18 essential performance indexes...
|
|
echo.
|
|
|
|
"C:\Program Files\PostgreSQL\18\bin\psql.exe" -U jellyfin -d jellyfin -f sql\add_base_performance_indexes.sql
|
|
|
|
if %ERRORLEVEL% EQU 0 (
|
|
echo.
|
|
echo ========================================
|
|
echo Success! Base indexes added.
|
|
echo ========================================
|
|
echo.
|
|
echo Indexes created:
|
|
echo - 9 on BaseItems
|
|
echo - 2 on BaseItemProviders
|
|
echo - 2 on MediaStreamInfos
|
|
echo - 2 on PeopleBaseItemMap
|
|
echo - 3 on UserData
|
|
echo.
|
|
echo Next: Restart Jellyfin
|
|
echo.
|
|
) else (
|
|
echo.
|
|
echo ========================================
|
|
echo Failed to add indexes
|
|
echo ========================================
|
|
echo.
|
|
)
|
|
|
|
pause
|