Comment 7 for bug 632145

Revision history for this message
Robert Collins (lifeless) wrote :

For use on a lp dataset:

timer = timeit.Timer('[(row.approverID, row.assigneeID, row.drafterID) for row in resultset]', 'from canonical.launchpad.interfaces.lpstorm import IMasterStore; from lp.blueprints.model.specification import Specification; store=IMasterStore(Specification); store.reset(); resultset = store.find(Specification, Specification.id < 3000)')