Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How does respawn work with circular references? #148

Open
devizer opened this issue Nov 11, 2024 · 0 comments
Open

How does respawn work with circular references? #148

devizer opened this issue Nov 11, 2024 · 0 comments

Comments

@devizer
Copy link

devizer commented Nov 11, 2024

/kind Question

How does it work?
Respawn examines the SQL metadata intelligently to build a deterministic order of tables to delete based on foreign key relationships between tables. It navigates these relationships to build a DELETE script starting with the tables with no relationships and moving inwards until all tables are accounted for.

Most of real solutions use circular references.
For example, Employee refers to Department. Department refers to Employee by DepartmentHeadId column.

Example above is natural direct circular reference. There are a lot of solutions use indirect circular references with more than two tables in a circle.

Just deleting is not enough in real life.

How does respawn really work?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant