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

Improve performance of exploratory heatmap datatable #979

Merged
merged 3 commits into from
Feb 8, 2024

Conversation

rabstejnek
Copy link
Collaborator

@rabstejnek rabstejnek commented Feb 1, 2024

When the React wrapper for datatables is used for a large dataset, it would take a long time to load. This was due to the fact that the large dataset was rendered as a regular table first before being passed to datatables.

This fix uses the data and columns option for datatables to render the table using data instead of the fully rendered DOM table; the old way is still supported for smaller tables, such as the generic summary tables. A loading component was also added to convey to the user when datatables is generating a table.

@rabstejnek rabstejnek marked this pull request as ready for review February 2, 2024 15:52
@shapiromatron shapiromatron self-assigned this Feb 6, 2024
Copy link
Owner

@shapiromatron shapiromatron left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works great, nice job! I made some minor edits (8da7675) to the data table constructor just to make it more clear what the possible options states are, but no functional changes.

@shapiromatron shapiromatron merged commit cc45b0d into main Feb 8, 2024
3 checks passed
@shapiromatron shapiromatron deleted the improve-datatables branch February 8, 2024 14:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants