IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Sep 16, 2008, 10:09:43 AM (18 years ago)
Author:
Paul Price
Message:

Optimising difftool -inputskyfile: this was driving the load on the mysql server way high. The problem is that there were two sub-selects that are UNION-ed, and then the search criteria were applied. The new version applies the search criteria to each sub-select separately, resulting in about a 20-fold reduction in execution time. Main patch by Josh, with a small fix by me.

File:
1 edited

Legend:

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

    r19092 r19582  
    3535        AND camRun.state = 'full'
    3636        AND chipRun.state = 'full'
     37        -- where hook %s
    3738    UNION
    3839    SELECT
     
    7172        AND camRun.state = 'full'
    7273        AND chipRun.state = 'full'
     74        -- where hook %s
    7375    ) as Foo
Note: See TracChangeset for help on using the changeset viewer.