diversicon-kb / diversicon-core

A knowledge base for lexicons and concepts, based on UBY
http://diversicon-kb.eu/tools
Other
0 stars 0 forks source link

implement "dry run" flag #40

Closed DavidLeoni closed 7 years ago

DavidLeoni commented 7 years ago

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 commented 7 years ago

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