Created
March 16, 2017 14:56
-
-
Save anonymous/9dae230bb9a9da0c831c9cb078233729 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Delete on minion_jobs j (cost=0.00..13706492.78 rows=7 width=12) | |
-> Nested Loop Anti Join (cost=0.00..13706492.78 rows=7 width=12) | |
Join Filter: (j.id = ANY (minion_jobs.parents)) | |
-> Seq Scan on minion_jobs j (cost=0.00..97048.52 rows=6678 width=14) | |
Filter: ((state = 'finished'::minion_state) AND (finished <= (now() - '48:00:00'::interval))) | |
-> Materialize (cost=0.00..94574.49 rows=86807 width=37) | |
-> Seq Scan on minion_jobs (cost=0.00..93461.45 rows=86807 width=37) | |
Filter: (state <> 'finished'::minion_state) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment