Add migration with alternative reduces index set

Entire-Checkpoint: af7afc9a29ff
This commit is contained in:
2026-03-11 05:46:03 +01:00
parent eba3995610
commit 301e590580
7 changed files with 551 additions and 26 deletions

View File

@@ -1 +1 @@
There also have to be bugs in jobQuery.go . Especially the following query triggers the memory leak: SELECT * FROM job WHERE job.job_state IN ("completed", "running", "failed") ORDER BY job.start_time DESC LIMIT 1 OFFSET 10; Dig deeper to find the cause. Also investigate why no existing index is used for this query.
What optimal index selection do you suggest? The job table contains almost 20 million jobs in production causing timouts on any filter query that does not use and index.