Merge branch 'import-data-sanitation' of https://github.com/ClusterCockpit/cc-backend into import-data-sanitation

This commit is contained in:
Christoph Kluge
2023-03-31 17:18:49 +02:00
12 changed files with 150 additions and 65 deletions

View File

@@ -228,7 +228,9 @@ func InitDB() error {
i := 0
errorOccured := 0
for jobMeta := range ar.Iter() {
for jobContainer := range ar.Iter(false) {
jobMeta := jobContainer.Meta
// // Bundle 100 inserts into one transaction for better performance:
if i%10 == 0 {