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

Dry run not working with transactions is slow #488

Closed
arj03 opened this issue Jul 11, 2016 · 3 comments
Closed

Dry run not working with transactions is slow #488

arj03 opened this issue Jul 11, 2016 · 3 comments

Comments

@arj03
Copy link

arj03 commented Jul 11, 2016

It appears that when running with transactions enabled, the semantics of dry_run changes. This means that in preview mode it will potentially start doing all kinds of crazy database stuff, only to rollback the transaction in case the user doesn't confirm the changes. For our app with a rather complicated save, this makes preview 10 times slower than it should be.

The following patch reverts so that dry_run can be used with transactions as well:

arj03@528ca8f

I don't see why we can't both have transactions and dry_run, they should be orthogonal.

@arj03 arj03 changed the title Dry run not working with transactions are slow Dry run not working with transactions is slow Jul 11, 2016
@thauk-copperleaf
Copy link
Contributor

I have PR #480 already open to fix up transactionality with import_data that you might want to look at.

@bmihelac
Copy link
Member

Is this still an issue?

@arj03
Copy link
Author

arj03 commented Aug 31, 2016

Should be fixed with #480

@arj03 arj03 closed this as completed Aug 31, 2016
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

3 participants