Explore page performance issues
See original GitHub issueDescription
Explore page feels unresponsive since it might take seconds to update! Any action from:
- select a field from the sidebar
- add a filter
- switch from chart to big number or table
- change any config in the chart/table
To Reproduce
Possible causes/solutions:
- we are using
lazy: false
for the configuration popups. This means all the hooks and logic in those components are “active” and possibly causing multiple state changes in the Visualization provider. This can be easily be fixed and tested. - Visualization provider is handling simultaneously all the chart types , big number and table hooks which are constantly recalculating configuration, etc. We should find a way to avoid this. Perhaps the hooks live in the specific type component and then save the state in the provider, once the user changes type the component calculates the state and replaces the state in the provider.
- Poor use of arrays when we should be using key/value maps. This is a recurrent issue when dealing with the explore items causing us to loop over data unnecessarily. I think the explore provider should provide the itemMap and the selectedItemMap. But I don’t think this would have such a big impact compared with the previous points that may cause multiple re-renders.
- Plotting data will most likely have to be moved to the server.
App Version
0.222.0
Issue Analytics
- State:
- Created a year ago
- Comments:11 (6 by maintainers)
Top Results From Across the Web
Instagram 'Explore Page' resetting or showing nature images ...
Many Instagram users are complaining about their Explore page resetting or showing nature images. Here are a couple of workarounds.
Read more >How to evaluate and improve page speed - Moz
To improve your server response time, look for performance bottlenecks like slow database queries, slow routing, or a lack of adequate memory and...
Read more >4 Steps To Measure Your Page's Performance - Facebook
Discover tips on how to use Page Insights to see how your Facebook Page is performing and use the information to improve your...
Read more >How to Get on the Instagram Explore Page 2023 | Sprout Social
The key to tackling this problem is by posting when your followers are most likely to see it. The best time to post...
Read more >How to Get On The Instagram Explore Page in 2021
Pro tip: Use Hootsuite's Post Performance tool to identify your top-performing posts, and adjust your strategy accordingly.
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
This should fix it https://github.com/lightdash/lightdash/pull/3099
following up to @rephus comment
here’s the loom explaining the changes behind the https://github.com/lightdash/lightdash/pull/3099 pr https://www.loom.com/share/5d60defe4d9f473ab17cc8716fd7e594