Files
pgsql-jellyfin/publish_test/scripts/windows/Add-Indexes-Quick.ps1
T
2026-07-08 13:13:46 -04:00

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
}