5565dc3e05
- Add scripts and SQL for base and supplementary indexes (total 23) - Integrate index checks and auto-creation into Jellyfin startup - Update csproj to include SQL files in build/publish output - Add diagnostics, publish/copy scripts, and troubleshooting docs - Provide detailed guides for migration, verification, and merging - Ensures robust, automated, and well-documented index setup
21 lines
854 B
PowerShell
21 lines
854 B
PowerShell
# Add Supplementary Indexes - Quick Command
|
|
|
|
Write-Host "Connecting to jellyfin_testsdata and adding supplementary indexes..." -ForegroundColor Cyan
|
|
Write-Host ""
|
|
|
|
# Quick and simple - just run the SQL script
|
|
psql -U jellyfin -d jellyfin_testsdata -f sql\schema_init\10_create_supplementary_indexes.sql
|
|
|
|
if ($LASTEXITCODE -eq 0) {
|
|
Write-Host ""
|
|
Write-Host "✓ Success! Supplementary indexes added." -ForegroundColor Green
|
|
Write-Host ""
|
|
Write-Host "Next: Restart Jellyfin to see performance improvements" -ForegroundColor Yellow
|
|
} else {
|
|
Write-Host ""
|
|
Write-Host "❌ Failed. Check that:" -ForegroundColor Red
|
|
Write-Host " - PostgreSQL is running" -ForegroundColor Gray
|
|
Write-Host " - Database 'jellyfin_testsdata' exists" -ForegroundColor Gray
|
|
Write-Host " - You have the correct password" -ForegroundColor Gray
|
|
}
|