Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improving speed of dashboard import #3958

Merged
merged 2 commits into from Dec 1, 2017

Conversation

michellethomas
Copy link
Contributor

The import dashboard function slows times out when you try to import too many dashboards or slices. This is a first pass at improving the performance.

Previously for every slice import we were looping over all slices to see if it's remote id matched the slice_to_import.id. Now, once for each dashboard I build a dictionary that has remote_id to Slice and look up the each slice's id in the mapping dictionary.

This speeds things up from 2-3 seconds per slice to < 1 second per slice.

@john-bodley @mistercrunch

@mistercrunch
Copy link
Member

LGTM once the tests pass

@mistercrunch mistercrunch merged commit 9904593 into apache:master Dec 1, 2017
michellethomas added a commit to michellethomas/panoramix that referenced this pull request May 24, 2018
* Improve dashboard import

* Updating tests for Slice.import_obj
wenchma pushed a commit to wenchma/incubator-superset that referenced this pull request Nov 16, 2018
* Improve dashboard import

* Updating tests for Slice.import_obj
@mistercrunch mistercrunch added 🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 0.21.0 labels Feb 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 0.21.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants