Skip to content

Remove zoekt_tasks.zoekt_node_id FK constraint and update detach logic

Dmitry Gruzd requested to merge 478587-remove-zoekt-tasks-zoekt-nodes-fk into master

What does this MR do and why?

This MR removes zoekt_tasks.zoekt_node_id foreign key since it causes database issues (LWLock contention)

This MR also updates the partition detachment logic to detach zoekt_tasks partitions if they have orphaned records.

#478587

MR acceptance checklist

Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Screenshots or screen recordings

Screenshots are required for UI changes, and strongly recommended for all other merge requests.

Before After

How to set up and validate locally

Numbered steps to set up and validate the change are strongly suggested.

Edited by Dmitry Gruzd

Merge request reports

Loading