You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by GitBox <gi...@apache.org> on 2019/04/03 05:58:54 UTC

[GitHub] [incubator-superset] mistercrunch commented on issue #7204: how to improvee the rendering speed

mistercrunch commented on issue #7204: how to improvee the rendering speed
URL: https://github.com/apache/incubator-superset/issues/7204#issuecomment-479351139
 
 
   A few things here, first is that the term `rendering` is misleading. Assuming your database is in async mode, here's some of what's happening. You can track some of this using `statsd` logging if it's configured
   * query executes:`sqllab.query.time_executing_query`
   * fetching data: `sqllab.query.time_fetching_results`
   * state is changed to `rendering`
   * data is pushed to results backend: `sqllab.query.results_backend_write`
   * client is polling
   * data is available, request is sent to get the full result set
   * fetching over network
   * actual rendering on the browser starts
   
   If you can just limit your query, all of this will be much faster.
   
   The reason why the postgres client is fast, is that it doesn't fetch all the data upfront, at step 2 (fetching data), it fetches a page and shows it. The cursor is kept alive and can be used to retrieve more rows as you scroll.
   
   We could improve all this to be more seamless/faster, but operating in async mode makes all of this more complicated. I think we'll improve this over time. One approach would be to deliver the data in two phases, with a new state `partially-delivered` or something like that.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to 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