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

Build eager loading tree when doing cascaded delete #2

Open
TimothyBJacobs opened this issue May 21, 2016 · 1 comment
Open

Build eager loading tree when doing cascaded delete #2

TimothyBJacobs opened this issue May 21, 2016 · 1 comment
Assignees

Comments

@TimothyBJacobs
Copy link
Member

No description provided.

@TimothyBJacobs TimothyBJacobs added this to the 2,0 milestone May 21, 2016
@TimothyBJacobs TimothyBJacobs self-assigned this May 21, 2016
@TimothyBJacobs
Copy link
Member Author

TimothyBJacobs commented May 30, 2016

This is going to be pretty complicated. We'd have to iterate over all registered tables to find which ones have references to the table of the model currently being deleted. This would have to be done in a recursive fashion as well.

A better way to do this would probably be to utilize a directed Graph to store the relationships between delete constrains. That should allow for better traversal and make it easier to build the eager loading data.

Another challenge, albeit simpler to solve, is that once the results have been "eager-loaded" to use those results instead of following the regular cascading process.

@TimothyBJacobs TimothyBJacobs removed this from the 2.0 milestone May 31, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant