[welcome page][perf] Slow queries to generate welcome page
See original GitHub issueHow to reproduce the bug
- As user using Superset for years,
- Go to https://superset.d.musta.ch/superset/welcome/
- Welcome page show spinner very, very long time:
- from MySQL Slow query log, I can see the query to get recent viewed items can take > 20 mins.
Environment
airbnb production
- superset version:
superset version
: latest master
Checklist
Make sure to follow these steps before submitting your issue - thank you!
- I have checked the superset logs for python stacktraces and included it here as text if there are any.
- I have reproduced the issue with at least the latest released version of superset.
- I have checked the issue tracker for the same issue and I haven’t found one similar.
Additional context
Add any other context about the problem here.
Issue Analytics
- State:
- Created 2 years ago
- Reactions:3
- Comments:5 (1 by maintainers)
Top Results From Across the Web
Viewing slow queries | OpsCenter 6.7
Click the title bar of the Slow Queries panel. The Slow Queries performance details page appears. Sort the slow queries by any column...
Read more >Use a slow query log - Product Documentation | ServiceNow
Use a slow query log · Navigate to All > System Diagnostics > Stats > Slow Queries · Open a query record for...
Read more >How to Enable the Slow Query Log in MySQL® or MariaDB
In MySQL 5.6 and older, use the log-slow-queries variable instead of the slow-query_log_file variable. Create the /var/log/mysql-slow.log file ...
Read more >Finding and Fixing Slow WordPress Database Queries
Slow SQL queries can crush your WordPress site's performance. Sometimes, slow queries are a result of poorly-formed SQL that never should ...
Read more >New Slow Queries - pganalyze
DBAs and developers use pganalyze to identify the root cause of performance issues, optimize queries and to get alerts about critical issues.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
We’ve fixed our problem by creating a specific index for this query:
Our Superset became faster than it was released, today we have around 400 users and more than 100 published dashboards.
Hello, we have created a purge for the log but it is slow because the logs table is constantly called. This has been fixed by creating an index on the dttm column of the logs table.
Can we add an index on next release ?
our PR for add purge on event logger 😉 https://github.com/apache/superset/pull/20636