[Bio] / Sprout / AttrDBRefresh.pl Repository:
ViewVC logotype

Diff of /Sprout/AttrDBRefresh.pl

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

revision 1.15, Wed May 2 05:53:17 2007 UTC revision 1.16, Wed May 2 06:05:30 2007 UTC
# Line 443  Line 443 
443              my $totalCount = 0;              my $totalCount = 0;
444              while ($thisCount) {              while ($thisCount) {
445                  # Delete a bunch of rows. To avoid a timeout, we limit the results.                  # Delete a bunch of rows. To avoid a timeout, we limit the results.
446                  $thisCount = $ca->DeleteLike('HasValueFor', 'HasValueFor(from-link) = ? AND HasValueFor(value) LIKE ? LIMIT 10000',                  $thisCount = $ca->DeleteLike('HasValueFor', 'HasValueFor(to-link) = ? AND HasValueFor(value) LIKE ? LIMIT 10000',
447                                             [$pdbID, '%Predicted']);                                             [$pdbID, '%Predicted']);
448                  $totalCount += $thisCount;                  $totalCount += $thisCount;
449                  Trace("$thisCount rows deleted in batch. $totalCount total deletions for pdb $pdbID.") if T(3);                  Trace("$thisCount rows deleted in batch. $totalCount total deletions for pdb $pdbID.") if T(3);

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

MCS Webmaster
ViewVC Help
Powered by ViewVC 1.0.3