From notifications-return-1506-archive-asf-public=cust-asf.ponee.io@superset.apache.org Fri Jun 1 18:34:54 2018 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id 8F10118063A for ; Fri, 1 Jun 2018 18:34:54 +0200 (CEST) Received: (qmail 99660 invoked by uid 500); 1 Jun 2018 16:34:53 -0000 Mailing-List: contact notifications-help@superset.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@superset.apache.org Delivered-To: mailing list notifications@superset.apache.org Received: (qmail 99651 invoked by uid 99); 1 Jun 2018 16:34:53 -0000 Received: from ec2-52-202-80-70.compute-1.amazonaws.com (HELO gitbox.apache.org) (52.202.80.70) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 01 Jun 2018 16:34:53 +0000 From: GitBox To: notifications@superset.apache.org Subject: [GitHub] mistercrunch commented on a change in pull request #4834: Load async sql lab results early for Presto Message-ID: <152787089311.16840.11662983280404312012.gitbox@gitbox.apache.org> Date: Fri, 01 Jun 2018 16:34:53 -0000 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit mistercrunch commented on a change in pull request #4834: Load async sql lab results early for Presto URL: https://github.com/apache/incubator-superset/pull/4834#discussion_r192441405 ########## File path: superset/db_engine_specs.py ########## @@ -737,12 +761,20 @@ def handle_cursor(cls, cursor, query, session): while polled: # Update the object and wait for the kill signal. stats = polled.get('stats', {}) - query = session.query(type(query)).filter_by(id=query.id).one() if query.status in [QueryStatus.STOPPED, QueryStatus.TIMED_OUT]: cursor.cancel() break + if ( + config.get('PREFETCH_ASYNC') and + (not query.has_loaded_early) + ): + query.has_loaded_early = True Review comment: This seems misleading for db engines that don't support the feature. Conceptually it's more like has_tried_to_load_early ... ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: users@infra.apache.org With regards, Apache Git Services --------------------------------------------------------------------- To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org For additional commands, e-mail: notifications-help@superset.apache.org