IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 35191


Ignore:
Timestamp:
Feb 21, 2013, 8:49:33 AM (13 years ago)
Author:
eugene
Message:

function to purge dvo regions was counting all entries in dvoDetectionFull, which is particularly silly as it is not relevant to the ingested regions

File:
1 edited

Legend:

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

    r35177 r35191  
    432432    def purgeTheseDvoRegions(self, regions, fileTypes):
    433433
    434         detectionCount = self.getRowCount(self.dvoDetectionTable)
     434        # XXX this must have been a remnant from something else: we are deleting a region, not entries from the dvoDetectionTable
     435        # detectionCount = self.getRowCount(self.dvoDetectionTable)
    435436        for region in regions:
    436437         
     
    448449                    pass
    449450
    450         deletedDetectionCount = detectionCount - self.getRowCount(self.dvoDetectionTable)
     451        # deletedDetectionCount = detectionCount - self.getRowCount(self.dvoDetectionTable)
    451452
    452453        # after a big detection delete, we should OPTIMIZE the table
    453         if deletedDetectionCount > 0:
    454             self.logger.infoPair("Running OPTIMIZE on ", self.dvoDetectionTable)
    455             self.optimizeTable(self.dvoDetectionTable)
    456 
    457         return deletedDetectionCount
     454        # if deletedDetectionCount > 0:
     455        #     self.logger.infoPair("Running OPTIMIZE on ", self.dvoDetectionTable)
     456        #     self.optimizeTable(self.dvoDetectionTable)
     457
     458        return 1
    458459           
    459460    '''
Note: See TracChangeset for help on using the changeset viewer.