IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 27737 for trunk/ippTools/share


Ignore:
Timestamp:
Apr 23, 2010, 11:19:20 AM (16 years ago)
Author:
bills
Message:

Fix very slow query for -towarped. Re-enable update processing;
Add -setskyfiletoupdate mode to queue updates for a single skycell.
Add -listrun.
Various other changes to support the postage stamp server.

Location:
trunk/ippTools/share
Files:
2 added
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippTools/share/warptool_pendingcleanupskyfile.sql

    r24186 r27737  
    1010    USING(warp_id)
    1111WHERE
    12    ((warpRun.state = 'goto_cleaned'  AND warpSkyfile.data_state = 'full')
     12   ((warpRun.state = 'goto_cleaned'  AND (warpSkyfile.data_state = 'full'
     13                                      OR  warpSkyfile.data_state = 'update'))
    1314    OR
    1415    (warpRun.state = 'goto_scrubbed' AND warpSkyfile.data_state != 'scrubbed')
  • trunk/ippTools/share/warptool_scmap.sql

    r19092 r27737  
    33    chipProcessedImfile.uri,
    44    chipProcessedImfile.path_base as chip_path_base,
    5     camProcessedExp.path_base as cam_path_base
     5    camProcessedExp.path_base as cam_path_base,
     6    chipProcessedImfile.chip_id,
     7    chipRun.state,
     8    chipProcessedImfile.data_state,
     9    chipProcessedImfile.magicked,
     10    rawImfile.magicked AS raw_magicked
    611FROM warpRun
    712JOIN warpSkyCellMap
     
    1823    ON chipRun.chip_id = chipProcessedImfile.chip_id
    1924    AND warpSkyCellMap.class_id = chipProcessedImfile.class_id
     25JOIN rawImfile
     26    ON chipRun.exp_id = rawImfile.exp_id
     27    AND chipProcessedImfile.class_id = rawImfile.class_id
    2028WHERE
    21 --    warpRun.state = 'new'
    22     fakeRun.state = 'full'
    23     AND camRun.state = 'full'
    24     AND chipRun.state = 'full'
     29    1
  • trunk/ippTools/share/warptool_towarped.sql

    r27503 r27737  
     1SELECT
     2    warp_id,
     3    warp_skyfile_id,
     4    skycell_id,
     5    tess_id,
     6    fake_id,
     7    state,
     8    reduction,
     9    cam_id,
     10    camera,
     11    exp_tag,
     12    workdir,
     13    magicked
     14FROM (
    115    SELECT DISTINCT
    216        warpSkyCellMap.warp_id,
     
    4559        AND warpSkyCellMap.fault = 0
    4660        -- where hook 1 %s
     61        -- limit hook 1 %s
     62UNION
     63    SELECT
     64        warpSkyCellMap.warp_id,
     65        warpImfile.warp_skyfile_id,
     66        warpSkyCellMap.skycell_id,
     67        warpSkyCellMap.tess_id,
     68        warpRun.fake_id,
     69        warpRun.state,
     70        warpRun.reduction,
     71        camRun.cam_id,
     72        rawExp.camera,
     73        rawExp.exp_tag,
     74        warpRun.workdir,
     75        MIN(chipProcessedImfile.magicked) AS magicked
     76    FROM warpRun
     77    JOIN warpImfile USING(warp_id)
     78    JOIN warpSkyCellMap USING(warp_id, skycell_id)
     79    JOIN warpSkyfile USING(warp_id, skycell_id)
     80    JOIN fakeRun USING(fake_id)
     81    JOIN camRun USING(cam_id)
     82    JOIN chipRun USING(chip_id)
     83    JOIN rawExp USING(exp_id)
     84    LEFT JOIN chipProcessedImfile USING(chip_id, class_id)
     85    WHERE warpRun.state = 'update'
     86        AND warpSkyfile.data_state = 'update'
     87        AND warpSkyfile.fault = 0
     88        AND camRun.state = 'full'
     89        AND chipProcessedImfile.data_state = 'full'
     90        -- if warpSkyfile was magicked previously require inputs to be magicked
     91        -- this blocks processing until all the chip inputs have been destreaked
     92        AND (warpSkyfile.magicked = 0 OR chipProcessedImfile.magicked >= 0)
     93        -- where hook 2 %s
     94    GROUP BY warp_id, skycell_id
     95    HAVING COUNT(warpSkyCellMap.class_id) = COUNT(chipProcessedImfile.class_id)
     96    -- limit hook 2 %s
     97) as towarped
     98
  • trunk/ippTools/share/warptool_warped.sql

    r25791 r27737  
    2121JOIN rawExp
    2222    ON chipRun.exp_id  = rawExp.exp_id
    23 WHERE
    24 -- bogus test; just here so there there is a 'WHERE' stmt to append conditionals too
    25 -- XXX EAM : not needed: fix warptool.c
    26     warpRun.warp_id is NOT NULL
Note: See TracChangeset for help on using the changeset viewer.