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

fix: synchronize session on all deletes #214

Merged
merged 2 commits into from
Feb 7, 2019
Merged

fix: synchronize session on all deletes #214

merged 2 commits into from
Feb 7, 2019

Conversation

lukehsiao
Copy link
Contributor

@lukehsiao lukehsiao commented Feb 7, 2019

Note that this does have some performance implications [1]:

The 'fetch' strategy results in an additional SELECT statement emitted and will significantly reduce performance.

But some overhead in performance when running clear and clear_all() seems worth it if it eliminates the sqlalchemy error.

See #213.

@lukehsiao lukehsiao added the bug Something isn't working label Feb 7, 2019
@lukehsiao lukehsiao added this to the v0.5.1 milestone Feb 7, 2019
@lukehsiao lukehsiao self-assigned this Feb 7, 2019
This adds session synchronization to all delete queries in fonduer. Note
that this does have performance implications. Specifically:

> The 'fetch' strategy results in an additional SELECT statement emitted
> and will significantly reduce performance.

from [1].

[1]: https://docs.sqlalchemy.org/en/latest/orm/query.html

Closes #213.
@senwu
Copy link
Collaborator

senwu commented Feb 7, 2019

Does this fix the #213 ?

@lukehsiao
Copy link
Contributor Author

Yes, it does for me.

@senwu
Copy link
Collaborator

senwu commented Feb 7, 2019

👍

@lukehsiao lukehsiao merged commit 2f714be into master Feb 7, 2019
@lukehsiao lukehsiao deleted the sync-session branch February 7, 2019 16:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants