You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Improve performance of REFRESH MATERIALIZED VIEW #2253
On our wings deployment, our SLI pipeline had accumulated over 500,000 builds. Running the query REFRESH MATERIALIZED VIEW CONCURRENTLY transition_builds_per_job (the longest of the three) was taking more than 30 seconds. With lots of builds finishing in quick succession, we were seeing the db in locked-up state due to the slow queries.
A Modest Proposal
Investigate ways to optimize the query
Instead of using materialized view, could we use a column on the builds table instead to keep track of the transition build?
After clearing out the builds table and removing the check_order index, this query is way faster and has not since slowed down. We're calling this issue a red herring.
@keithkroeger what version of concourse are you running? These views transition_builds_per_job for example, is not used after v4.2 and thus I believe this issue is not valid anymore.
Activity
jama22 commentedon Jun 4, 2018
Let's investigate this now that @xtremerui fixed our slowness. This might have been a red herring because the entire system was slow
nader-ziada commentedon Jun 13, 2018
After clearing out the
buildstable and removing thecheck_orderindex, this query is way faster and has not since slowed down. We're calling this issue a red herring.bump etree tsa handlers mux clockwork goxmldsig genproto grpc
keithkroeger commentedon Mar 22, 2019
Hello @vito,
This looks like it won't be fixed based on tagging.
Is there any index that can be added while we wait to upgrade to 5.0.0?
Thank you
xtremerui commentedon Mar 22, 2019
@keithkroeger what version of concourse are you running? These views
transition_builds_per_jobfor example, is not used after v4.2 and thus I believe this issue is not valid anymore.