def perf_load(): """Play with getting a fast way to load the recent history from the db.""" db_path = join("tmp", "perf_load.sqlite") setup_perf_load(db_path) hist = History(db_path) start = timestamp() hist.load() end = timestamp() print "time to load: %.3fs" % (end-start)