Optimize AI dashboard job payload

This commit is contained in:
Grendgi
2026-06-09 11:44:53 +03:00
parent 092994fe74
commit 6254bf0810
6 changed files with 98 additions and 2 deletions

View File

@@ -0,0 +1 @@
DROP INDEX IF EXISTS ai_jobs_recent_status_idx;

View File

@@ -0,0 +1,2 @@
CREATE INDEX IF NOT EXISTS ai_jobs_recent_status_idx
ON ai_jobs (status, updated_at DESC, created_at DESC);