Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Added a sort so that the analysisDB tables are entered in alphabetica…

…l order so that we can track the loading process more closely.
  • Loading branch information...
commit e980cbae72c818147ba632e8a8a4663d7b415e82 1 parent 25d2e70
@jaredbischof authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 bin/load_summary2db
View
6 bin/load_summary2db
@@ -89,13 +89,13 @@ if ($has_job && (! $reload)) {
$dbh->commit;
# Delete entries from job_* tables with this job and version
- foreach my $file_type (keys %filenames) {
+ foreach my $file_type (sort keys %filenames) {
$dbh->do("DELETE FROM job_$file_type WHERE job=$jobID AND version=$version");
print "Deleting from job_$file_type where job=$jobID and version=$version" if ($verbose);
}
# Load files into job_* tables
- foreach my $file_type (keys %filenames) {
+ foreach my $file_type (sort keys %filenames) {
if($filenames{$file_type} ne "") {
&insert_job_abundances($dbh, $file_type);
}
@@ -111,7 +111,7 @@ if ($has_job && (! $reload)) {
$dbh->commit;
# Load files into job_* tables
- foreach my $file_type (keys %filenames) {
+ foreach my $file_type (sort keys %filenames) {
if($filenames{$file_type} ne "") {
&insert_job_abundances($dbh, $file_type);
}
Please sign in to comment.
Something went wrong with that request. Please try again.