From: Mike Bayer Date: Fri, 20 Apr 2018 18:34:52 +0000 (-0400) Subject: - more type cache warmup X-Git-Tag: rel_1_3_0b1~201 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=65ba2606be7f0eef2736270a099940ab2c218c4d;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git - more type cache warmup Change-Id: I1b4327d38b5a09b73298c99f37919ee9f48aad0b --- diff --git a/test/aaa_profiling/test_resultset.py b/test/aaa_profiling/test_resultset.py index 54cb76939f..51ff739a31 100644 --- a/test/aaa_profiling/test_resultset.py +++ b/test/aaa_profiling/test_resultset.py @@ -39,6 +39,12 @@ class ResultSetTest(fixtures.TestBase, AssertsExecutionResults): # warm up type caches t.select().execute().fetchall() t2.select().execute().fetchall() + testing.db.execute('SELECT %s FROM table1' % ( + ", ".join("field%d" % fnum for fnum in range(NUM_FIELDS)) + )).fetchall() + testing.db.execute("SELECT %s FROM table2" % ( + ", ".join("field%d" % fnum for fnum in range(NUM_FIELDS)) + )).fetchall() def teardown(self): metadata.drop_all()