IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jan 31, 2012, 9:52:33 AM (14 years ago)
Author:
rhenders
Message:

after purging detections, we now OPTIMIZE the detections table

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippToPsps/jython/scratchdb.py

    r33177 r33182  
    447447               self.logger.errorPair("Unable to delete " + region + " from", self.dvoDoneTable)
    448448
    449        
    450         return detectionCount - self.getRowCount(self.dvoDetectionTable)
     449        finalCount = detectionCount - self.getRowCount(self.dvoDetectionTable)
     450
     451        # after a big delete, we should OPTIMIZE the table
     452        self.logger.infoPair("Running OPTIMIZE on ", self.dvoDetectionTable)
     453        if finalCount > 0: self.optimizeTable(self.dvoDetectionTable)
     454
     455        return finalCount
    451456           
    452457
Note: See TracChangeset for help on using the changeset viewer.