You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@superset.apache.org by ma...@apache.org on 2018/08/15 19:27:10 UTC

[incubator-superset] branch master updated: Explore View Perf Fix (#5637)

This is an automated email from the ASF dual-hosted git repository.

maximebeauchemin pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-superset.git


The following commit(s) were added to refs/heads/master by this push:
     new 5966a67  Explore View Perf Fix (#5637)
5966a67 is described below

commit 5966a674e57240852c853d2b14cbf7675c77a134
Author: Sumedh Sakdeo <77...@users.noreply.github.com>
AuthorDate: Wed Aug 15 12:27:08 2018 -0700

    Explore View Perf Fix (#5637)
---
 superset/db_engine_specs.py | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/superset/db_engine_specs.py b/superset/db_engine_specs.py
index 65289e1..b4a0b3c 100644
--- a/superset/db_engine_specs.py
+++ b/superset/db_engine_specs.py
@@ -365,8 +365,10 @@ class BaseEngineSpec(object):
         """
         return {}
 
-    @staticmethod
-    def execute(cursor, query, async=False):
+    @classmethod
+    def execute(cls, cursor, query, async=False):
+        if cls.arraysize:
+            cursor.arraysize = cls.arraysize
         cursor.execute(query)
 
     @classmethod