Skip to content

Commit

Permalink
Removing code that shuffles the processing order of the data files
Browse files Browse the repository at this point in the history
I'm not sure of the original intention for the shuffling code but I think allowing the data files to be processed more or less in numeric order will be of benefit to users with the other new options added within this branch.
  • Loading branch information
orware committed Oct 10, 2024
1 parent 1421bf6 commit bdef4dd
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions internal/dumper/loader.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,13 +86,6 @@ func (l *Loader) Run(ctx context.Context) error {
l.cfg.Printer.Println("Skipping restoring schema files...")
}

// Commenting out to add some predictability to the order in which data files will be processed:
// Shuffle the tables
//for i := range files.tables {
// j := rand.Intn(i + 1)
// files.tables[i], files.tables[j] = files.tables[j], files.tables[i]
//}

var eg errgroup.Group
var bytes uint64
t := time.Now()
Expand Down

0 comments on commit bdef4dd

Please sign in to comment.