- Timestamp:
- Mar 5, 2013, 2:23:09 PM (13 years ago)
- Location:
- branches/eam_branches/ipp-20130207/ippToPsps
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
jython/scratchdb.py (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20130207/ippToPsps
- Property svn:mergeinfo changed
/trunk/ippToPsps (added) merged: 35170-35171,35173-35175,35177-35179,35181-35188,35190-35191,35203-35204,35216-35218,35222-35226,35232-35233
- Property svn:mergeinfo changed
-
branches/eam_branches/ipp-20130207/ippToPsps/jython/scratchdb.py
r35097 r35235 19 19 Constructor 20 20 ''' 21 def __init__(self, logger, config , dbVersion, dbName=None):21 def __init__(self, logger, config): 22 22 23 23 # create gpc1 database objects 24 # XXX the test option is probably not needed since 25 # the scratchDb config infor is set up specially 24 26 if (config.test): 25 27 dbType = "localdatabase_test" … … 27 29 dbType = "localdatabase" 28 30 29 if not dbName:30 dbName = config.getDbName(dbType) 31 dbName += dbVersion31 print "trying to connect: ", dbType 32 33 dbName = config.getDbName(dbType) 32 34 33 35 super(ScratchDb, self).__init__(logger, config, dbType, dbName) … … 432 434 def purgeTheseDvoRegions(self, regions, fileTypes): 433 435 434 detectionCount = self.getRowCount(self.dvoDetectionTable) 436 # XXX this must have been a remnant from something else: we are deleting a region, not entries from the dvoDetectionTable 437 # detectionCount = self.getRowCount(self.dvoDetectionTable) 435 438 for region in regions: 436 439 … … 448 451 pass 449 452 450 deletedDetectionCount = detectionCount - self.getRowCount(self.dvoDetectionTable)453 # deletedDetectionCount = detectionCount - self.getRowCount(self.dvoDetectionTable) 451 454 452 455 # 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 deletedDetectionCount456 # if deletedDetectionCount > 0: 457 # self.logger.infoPair("Running OPTIMIZE on ", self.dvoDetectionTable) 458 # self.optimizeTable(self.dvoDetectionTable) 459 460 return 1 458 461 459 462 '''
Note:
See TracChangeset
for help on using the changeset viewer.
