IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 32218


Ignore:
Timestamp:
Aug 29, 2011, 6:13:55 PM (15 years ago)
Author:
watersc1
Message:

Speed improvement for difftool -pendingcleanuprun

Location:
trunk/ippTools
Files:
2 edited

Legend:

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

    r26927 r32218  
    22-- all of this is just to get the camera used for the diff run
    33SELECT DISTINCT * FROM
    4    (SELECT
     4   (SELECT DISTINCT
    55            diffRun.diff_id,
    66            rawExp.camera,
     
    2929             diffRun.state = 'goto_scrubbed' OR
    3030             diffRun.state = 'goto_purged')
     31        @INNERLIMITS@
    3132     UNION
    32      SELECT
     33     SELECT DISTINCT
    3334            diffRun.diff_id,
    3435            rawExp.camera,
     
    5758             diffRun.state = 'goto_scrubbed' OR
    5859             diffRun.state = 'goto_purged')
     60        @INNERLIMITS@
    5961     UNION
    60      SELECT
     62     SELECT DISTINCT
    6163            diffRun.diff_id,
    6264            rawExp.camera,
     
    8587             diffRun.state = 'goto_scrubbed' OR
    8688             diffRun.state = 'goto_purged')
     89        @INNERLIMITS@
    8790     UNION
    88      SELECT
     91     SELECT DISTINCT
    8992            diffRun.diff_id,
    9093            rawExp.camera,
     
    113116             diffRun.state = 'goto_scrubbed' OR
    114117             diffRun.state = 'goto_purged')
     118        @INNERLIMITS@
    115119        ) as Foo
    116120        WHERE 1
  • trunk/ippTools/src/difftool.c

    r31435 r32218  
    24612461        psString limitString = psDBGenerateLimitSQL(limit);
    24622462        psStringAppend(&query, " %s", limitString);
     2463        psStringSubstitute(&query,limitString,"@INNERLIMITS@");
    24632464        psFree(limitString);
     2465
     2466    }
     2467    else {
     2468      psStringSubstitute(&query,NULL,"@INNERLIMITS@");
    24642469    }
    24652470    //    fprintf(stderr,"%s",query);
Note: See TracChangeset for help on using the changeset viewer.