[Bio] / Sprout / ERDBLoad.pm Repository:
ViewVC logotype

Diff of /Sprout/ERDBLoad.pm

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.15, Fri Jul 7 00:24:50 2006 UTC revision 1.16, Sun Jul 9 21:16:12 2006 UTC
# Line 82  Line 82 
82          Trace("Relation $relationName will be loaded from $fileName.") if T(2);          Trace("Relation $relationName will be loaded from $fileName.") if T(2);
83          $fileHandle = "";          $fileHandle = "";
84      } else {      } else {
85          # If this is a primary entity relation, sort the output to remove          # Determine the sort for this relation.
86          # duplicate keys and make the load more efficient.          my $fileString = "| " . $erdb->SortNeeded($relationName) . ">$fileName";
         my $fileString = ($erdb->SortNeeded($relationName) ?  
                             "| sort +0 -1 -u -t \"\t\" >$fileName" :  
                             ">$fileName");  
87          # Open the output file and remember its handle.          # Open the output file and remember its handle.
88          $fileHandle = Open(undef, $fileString);          $fileHandle = Open(undef, $fileString);
89          Trace("Relation $relationName load file created with primary flag $primary.") if T(2);          Trace("Relation $relationName load file created with primary flag $primary.") if T(2);

Legend:
Removed from v.1.15  
changed lines
  Added in v.1.16

MCS Webmaster
ViewVC Help
Powered by ViewVC 1.0.3