Skip to content

ssbc: Fix slow cascading deletes

Administrator requested to merge es/fix-delete-perf into main

Created by: eseliger

This brings down a delete query on k8s from 625353s to 201ms. Foreign keys don't automatically have a reverse index to look up with.

Closes https://github.com/sourcegraph/sourcegraph/issues/36863

Test plan

Tested this on k8s where I was seeing the issue.

Merge request reports

Loading