Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Added a sort so that the analysisDB tables are processed in alphabetical order so that we can track the loading process more closely. #61

Merged
merged 1 commit into from

2 participants

@jaredbischof

No description provided.

@jaredbischof jaredbischof Added a sort so that the analysisDB tables are entered in alphabetica…
…l order so that we can track the loading process more closely.
e980cba
@teharrison
Owner

should we add extra logging to print the time taken to run each COPY?

@teharrison teharrison merged commit 306b8c9 into MG-RAST:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Dec 19, 2012
  1. @jaredbischof

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

    jaredbischof authored
    …l order so that we can track the loading process more closely.
This page is out of date. Refresh to see the latest.
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);
}
Something went wrong with that request. Please try again.