Performance tip: ANALYZE command #1455
amacfie-tc
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I noticed that throughput was low even though when jobs ran they executed at normal speed. There were long gaps in between jobs so it appeared that Procrastinate workers were communicating with the database very slowly. Sure enough, the
procrastinate_fetch_job_v2
function was taking a long time. Here is the output ofEXPLAIN ANALYZE
for the SQL statement in that function:After running
ANALYZE procrastinate_jobs
, everything was fast again and this was the new output:Beta Was this translation helpful? Give feedback.
All reactions