superset icon indicating copy to clipboard operation
superset copied to clipboard

Superset MySQL Queries taking a long time

Open chebu opened this issue 9 years ago • 6 comments

Make sure these boxes are checked before submitting your issue - thank you!

  • [x] I have checked the superset logs for python stacktraces and included it here as text if any
  • [x] I have reproduced the issue with at least the latest released version of superset
  • [x] I have checked the issue tracker for the same issue and I haven't found one similar

Superset version

0.15.4

Expected results

when I run queries using Superset against MySQL database on my local machine it takes significantly longer than running the same query from a mysql command line. A simple query like "SELECT count(*) FROM table_a" takes less than 1 second when executed from a mysql command line while taking more than 20 sec when I run it from Superset which is running on the same machine. Is there any way to fix that?

Actual results

Steps to reproduce

chebu avatar Feb 11 '17 21:02 chebu

Where is the time spent? Are you measuring the exact same query?

xrmx avatar Feb 12 '17 12:02 xrmx

I am using exactly the same query and comparing the time of the timer on the right in SQL Editor and the time given when executing the query from mysql command line. The same queries from SQL Editor in Superset take about 20 sec longer.

"Where is the time spent? " is also my question.

chebu avatar Feb 12 '17 16:02 chebu

I have meet the same problem, waiting for the solution.

GeorgeGuoCN avatar Feb 13 '17 02:02 GeorgeGuoCN

Notice: this issue has been closed because it has been inactive for 434 days. Feel free to comment and request for this issue to be reopened.

mistercrunch avatar Apr 23 '18 05:04 mistercrunch

The problem is still there. For some reason, queries inside superset are much slower than the same queries from the console.

aleks-walker avatar Mar 17 '20 12:03 aleks-walker

I see the same issue with clickhouse . Clickouse query takes 1 sec but the same query with sql lab takes 8-9 sec.

vikm2o avatar Mar 23 '25 03:03 vikm2o