question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Explore page performance issues

See original GitHub issue

Description

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

Aug-18-2022 17-30-24

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:closed
  • Created a year ago
  • Comments:11 (6 by maintainers)

github_iconTop GitHub Comments

2reactions
rephuscommented, Aug 30, 2022

Rendering the table is quite expensive - a lot of this from the cell context menu

This should fix it https://github.com/lightdash/lightdash/pull/3099

1reaction
IrakliJanicommented, Aug 30, 2022

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

Read more comments on GitHub >

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

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found