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/07/01 18:09:46 UTC

[GitHub] [incubator-superset] graceguo-supercat opened a new issue #7807: [Tagging] Save_as dashboard is very slow because of tagged_objects updates in DB

graceguo-supercat opened a new issue #7807: [Tagging] Save_as dashboard is very slow because of tagged_objects updates in DB
URL: https://github.com/apache/incubator-superset/issues/7807
 
 
   In airbnb we have around 9000 dashboards and over 100,000 slices.
   
   ### Expected results
   
   When user save_as a copy of a dashboard, the action should finish in a couple of seconds.
   
   ### Actual results
   
   It took user 90 seconds to save_as a dashboard with 90 slices.
   
   #### Screenshots
   
   When calling /copy_dash API, I found following db operation is very slow:
   `SELECT tagged_object.id AS tagged_object_id 
   FROM tagged_object INNER JOIN tag ON tag.id = tagged_object.tag_id 
   WHERE tagged_object.object_type = 'chart' AND tagged_object.object_id = 150283 AND tag.type = 'owner' `
   
   
   #### How to reproduce the bug
   
   1. Create a large dashboard
   2. Click `Save as` button from dashboard header dropdown menu
   3. Choose `Save as`
   
   ### Environment
   
   (please complete the following information):
   
   - superset version: lastest 
   - python version: Python 3.6.1
   - node.js version: v10.15.3
   - npm version: 6.4.1
   
   ### Checklist
   
   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 there are 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.
   
   ### Additional context
   
   Add any other context about the problem here.
   

----------------------------------------------------------------
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