]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
- more type cache warmup
authorMike Bayer <mike_mp@zzzcomputing.com>
Fri, 20 Apr 2018 18:34:52 +0000 (14:34 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Fri, 20 Apr 2018 18:34:52 +0000 (14:34 -0400)
Change-Id: I1b4327d38b5a09b73298c99f37919ee9f48aad0b

test/aaa_profiling/test_resultset.py

index 54cb76939fb79349e681499a2a58280130fe8b6d..51ff739a313cb38e42073d2158fedbfa752f350d 100644 (file)
@@ -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()