Open BalaNagendraReddy opened 2 days ago
Hey @BalaNagendraReddy and thanks for the great question! The Vizro team plans to document good practices for working with big data soon, and until then, here are some suggestions on what can you do to improve your page rendering time:
data_frame parameter
. More about parametrize data loading you can find here -> https://vizro.readthedocs.io/en/stable/pages/user-guides/data/#parametrize-data-loadingvm.Dropdown
(with multi=False
),vm.RadioItems
,vm.Slider
andvm.DatePicker
(with range=False
)Hi @petar-qb ,
Thanks for sharing the valuable information!
In my case, the issue isn't related to reading the CSV file or creating the treemap, but rather with the time it takes to load the treemap and grid table in the browser.
Are there any strategies or optimizations I can implement to speed up the rendering or loading of these components in the browser? Specifically, I’m looking for approaches that can improve the overall responsiveness and reduce load times, especially when dealing with larger datasets.
Any advice or pointers would be greatly appreciated!
Thanks again for your help!
Hi @BalaNagendraReddy,
Could you let us know which version of Vizro you're using? The latest release is vizro==0.1.26
, and we recommend upgrading to this version if you haven’t yet. It's weird that you have problems with rendering 35k rows as this doesn't sound like too big data for handling.
If loading large amount of data on the server and creation of treemap and ag_grid on the server is fast operation (so, if response time
meets you expectations), but the rendering time
on the browser is slow, then I recommend (2. 4. and 5. rules from the previous comment). These rules will ensure that not entire data is presented in the treemap and ag_grid. Presenting smaller amount of data means faster rendering time.
I also recommend you to implement the 6. suggestion from the last comment I posted. Ag-Grid pagination (that could be configured super easily by setting a single property) should speedup the rendering time too.
Hi @petar-qb ,
Thanks for the prompt response. Currently, iam using vizro==0.1.21
.
Will check above points to speed up the loading.
Question
I'm working with a CSV file that contains around 35,000 rows, and when I try to load it into Vizro, it takes a long time to render the page, especially when using both the treemap and AG Grid table components. Are there any strategies or best practices to speed up the loading time for large datasets like this? Any suggestions for optimizing performance would be greatly appreciated!
Code/Examples
No response
Which package?
vizro
Code of Conduct