IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Dec 13, 2008, 10:17:34 AM (17 years ago)
Author:
bills
Message:

Rework the diff stage to process the skycells from an exposure in a single
diffRun

File:
1 edited

Legend:

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

    r20841 r20973  
    6565    JOIN magicRun USING (magic_id)
    6666    JOIN magicInputSkyfile USING(magic_id)
    67     -- Do we really need to join back to diffInputSkyfile here?
    68     JOIN diffRun USING(diff_id)
    69     JOIN diffSkyfile USING(diff_id)
    70     JOIN diffInputSkyfile USING(diff_id)
     67    JOIN diffSkyfile
     68        ON magicInputSkyfile.diff_id = diffSkyfile.diff_id
     69        AND magicInputSkyfile.node = diffSkyfile.skycell_id
    7170    LEFT JOIN magicDSFile
    7271        ON magicDSRun.magic_ds_id = magicDSFile.magic_ds_id
    73         AND magicDSFile.component = diffInputSkyfile.skycell_id
     72        AND magicDSFile.component = diffSkyfile.skycell_id
    7473    WHERE
    7574        magicDSRun.state = 'run'
    7675        AND magicDSRun.stage = 'diff'
    77         AND diffRun.state = 'full'
    7876        AND diffSkyfile.fault = 0
    7977    GROUP BY
Note: See TracChangeset for help on using the changeset viewer.