-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Dropdown selector with a long list is very slow #103
Comments
Ah yeah, different story with 23,000 items. That is slow! It looks like we could maybe swap out the dropdown with https://github.com/bvaughn/react-virtualized-select/ to make it faster.... |
Just tried out |
OK, published it to a pre-release channel. @jamestwebber - could you try it out?
|
It works pretty well for 50k options, but starts to bog down at 100k options |
That sounds like it'll be plenty fast for us, I will give it a shot soon. Thanks for the super fast response! |
Just tried it out, very snappy. 👍 |
attempt to fix plotly/dash#103
attempt to fix plotly/dash#103
attempt to fix plotly/dash#103
Now part of |
@chriddyp I have tried using the dropdown in the official example here: https://dash.plotly.com/dash-core-components/dropdown with some thousands of points and the page is very slow at loading (seconds). Is your solution using a different Dash widget? |
attempt to fix plotly#103
attempt to fix plotly#103
Hey @chriddyp , would you be willing to reopen this thread? There is a javascript plugin virtual-select that solves this issue without the pitfall of only displaying the options available for the user filter, which is the case of the Dynamic Options. There is an R Shiny extension which employs that plugin and the result is really good: https://dreamrs.github.io/shinyWidgets/reference/virtualSelectInput.html Thank you |
Thanks @GitHunter0 - I'll reopen the issue and if you'd like to submit a PR I'll make sure it gets reviewed as quickly as possible - thank you. |
Hi - I spoke with one of our developers, and the old dropdowns have been replaced with virtualized ones, which should apply in all cases except dynamic options. If that's your use case, could you please file a fresh issue with a minimal reprex and include |
This might be a plotly issue rather than a Dash issue, I'm not sure.
We've built some dropdown selectors that have very long lists of options (several thousand), and trying to use them is very slow. I couldn't figure out where the options are stored, but I did confirm that it's not going back to the server at least (because I can stop the server and still select a new item).
If there's a way to make the widget more responsive at the expense of memory that would be well worth it for us.
The text was updated successfully, but these errors were encountered: