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

models: use "passive_deletes=True" for cascading deletes #247

Open
slint opened this issue Apr 26, 2020 · 0 comments
Open

models: use "passive_deletes=True" for cascading deletes #247

slint opened this issue Apr 26, 2020 · 0 comments

Comments

@slint
Copy link
Member

slint commented Apr 26, 2020

Read "ORM-level “delete” cascade vs. FOREIGN KEY level “ON DELETE” cascade" note in https://docs.sqlalchemy.org/en/13/orm/cascades.html#delete for the explanation.

TLDR: without this parameter, instead of a fast DB-level cascade trigger, a slow ORM-level cascade takes place

For this module, it seems that the BucketTag and ObjectVersionTag models would require this.

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