We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0a0ccde commit 5049a2cCopy full SHA for 5049a2c
1 file changed
migrations/20250904065521_job_setup.sql
@@ -34,6 +34,14 @@ CREATE INDEX idx_job_executions_poller_instance
34
ON job_executions(poller_instance_id)
35
WHERE state = 'running';
36
37
+CREATE INDEX idx_job_executions_running_alive_at
38
+ ON job_executions(alive_at)
39
+ WHERE state = 'running';
40
+
41
+CREATE INDEX idx_job_executions_pending_execute_at
42
+ ON job_executions(execute_at)
43
+ WHERE state = 'pending';
44
45
CREATE OR REPLACE FUNCTION notify_job_execution_insert() RETURNS TRIGGER AS $$
46
BEGIN
47
PERFORM pg_notify('job_execution', '');
0 commit comments