VirtualBox

Changeset 61183 in vbox for trunk/src/VBox


Ignore:
Timestamp:
May 25, 2016 12:17:34 AM (9 years ago)
Author:
vboxsync
Message:

partial-db-dump.py: perf hack

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/ValidationKit/testmanager/db/partial-db-dump.py

    r61182 r61183  
    171171            oDb.execute('COPY (SELECT it.*\n'
    172172                        '      FROM ' + sTable + ' it, TestResults tr\n'
    173                         '      WHERE  tr.idTestSet >= %s AND it.idTestResult = tr.idTestResult )\n'
    174                         '  TO %s WITH (FORMAT TEXT)',
    175                         (idFirstTestSet, sFile,));
     173                        '      WHERE  tr.idTestSet >= %s\n'
     174                        '         AND tr.tsCreated >= %s\n' # performance hack.
     175                        '         AND it.idTestResult = tr.idTestResult\n'
     176                        ') TO %s WITH (FORMAT TEXT)',
     177                        (idFirstTestSet, tsEffective, sFile,));
    176178            cRows = oDb.getRowCount();
    177179            print '... %s rows.' % (cRows,);
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette