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

implement "dry run" flag #40

Closed
DavidLeoni opened this issue Feb 2, 2017 · 1 comment
Closed

implement "dry run" flag #40

DavidLeoni opened this issue Feb 2, 2017 · 1 comment
Assignees
Milestone

Comments

@DavidLeoni
Copy link
Member

We should support some "dry-run" import functionality.

A realistic "dry run" is currently not possibile because system is not fully transactional: UBY performs many commits during import, and even if we change it to do just one commit I don't even know if it is possibile at all to run a huge transaction without making Hibernate explode. For sure we can't do many small transactions inside a bigger one, because nor Hibernate nor H2 support nested transactions.

So we can at least simulate import to the point when db is checked prior actually running UBY import.

@DavidLeoni
Copy link
Member Author

Note dry run just goes until third step of validation includeed where it checks references against the db
It does't try the ideal solution which would be doing a a transaction with a successive rollback because of #38

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