pacificclimate / modelmeta

An ORM representation of the model metadata database
GNU General Public License v3.0
1 stars 0 forks source link

Errors during processing a file can leave incomplete or erroneous information in the db #26

Closed rod-glover closed 7 years ago

rod-glover commented 7 years ago

For example, an error when inserting a DataFileVariable will leave the already-inserted DataFile in place (as well as possibly other records associated with the DF), which results in an incomplete and incorrect indexing for that file. Currently such erroneous insertions have to be manually backed out :-1: .

Likely fix: Wrap all database operations for each file processed in a transaction