[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.13, Wed Apr 19 03:34:15 2006 UTC revision 1.15, Fri Jul 7 00:24:50 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 whose key is not a hash string, sort          # If this is a primary entity relation, sort the output to remove
86          # the output to remove duplicate keys.          # duplicate keys and make the load more efficient.
87          my $fileString = ($erdb->SortNeeded($relationName) ?          my $fileString = ($erdb->SortNeeded($relationName) ?
88                              "| sort +0 -1 -u -t \"\t\" >$fileName" :                              "| sort +0 -1 -u -t \"\t\" >$fileName" :
89                              ">$fileName");                              ">$fileName");
# Line 209  Line 209 
209    
210  C<< my $stats = $erload->Finish(); >>  C<< my $stats = $erload->Finish(); >>
211    
212  Finish loading the table. This closes the load file and loads its contents into the database.  Finish loading the table. This closes the load file.
 It also creates the indexes if the DBMS uses post-indexing.  
213    
214  =over 4  =over 4
215    

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

MCS Webmaster
ViewVC Help
Powered by ViewVC 1.0.3