Skip to content

Add loose foreign keys (LFK) for p_duo_workflows_checkpoints

Summary

Add loose foreign key (LFK) constraints for all three foreign key relationships on p_duo_workflows_checkpoints:

  • namespace_idnamespaces
  • project_idprojects
  • workflow_idduo_workflows_workflows

Context

This is a follow-up task from #560503 (closed), which addresses recurring lock contention caused by foreign key constraints on partitions of p_duo_workflows_checkpoints.

After dropping the regular foreign key constraints, we need to implement loose foreign keys to maintain referential integrity without the locking issues. Loose foreign keys provide eventual consistency through async cleanup rather than synchronous constraint enforcement.

Implementation

Follow the guidance in the loose foreign keys documentation to add the three relationships to the LFK YAML configuration.

Related