[DataTable] Performance: Select All takes 5 - 30 s for tables with 1000+ rows
See original GitHub issue[DataTable] Performance: Select All takes 5 - 30 s for tables with 1000+ rows
https://codesandbox.io/embed/codesandbox-1lumy
For DataTable with 5000 rows and only 10 rendered, “Select All” (checkbox selection) takes 5 seconds. You can play with MyDataTable.js (contructor) to change number of variables. For 30000 rows it hangs for over 30 seconds.
I’m assuming that this could be related with DataTable.setAllSelectedState implementation.
Maybe cloning using JSON.parse(JSON.stringify(obj));
will be faster.
What package(s) are you using?
"carbon-components": "10.7.0",
"carbon-components-react": "7.7.0",
"carbon-icons": "7.0.7",
"@carbon/layout": "10.5.0",
"@carbon/themes": "10.7.0",
Steps to reproduce the issue
- Go to codesandbox I’ve created
- Try to select or unselect “Select all” checkbox (table header)
Please create a reduced test case in CodeSandbox
Issue Analytics
- State:
- Created 4 years ago
- Reactions:3
- Comments:7 (3 by maintainers)
Top Results From Across the Web
Processing Load very slow takes more than 30 seconds
Currently the query returns about 2000 (1,816) records, but as more records are added it can reach 10,000 perfectly. The table has 32...
Read more >Introduction to data.table - R Project
2022-11-15. This vignette introduces the data.table syntax, its general form, how to subset rows, select and compute on columns, and perform ...
Read more >Angular 6 MatTable Performance in 1000 rows - Stack Overflow
Not sure if this will help your situation as there's no code but we've found that the MatTable loads very slowly if a...
Read more >Chapter 4. Query Performance Optimization - O'Reilly
Retrieve rows from the table, then filter nonmatching rows (“Using where” in the Extra column). This happens at the server layer and requires...
Read more >How to speed up queries on a large 220 million rows table (9 ...
Because I have one table which has only 20 millions records and still it takes 30 seconds for SELECT QUERY . Would you...
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 is happening on production builds on our system, 4.5k items causes 15 seconds on my computer but on weaker computers it just locks up for minutes
#8716 reported this w/ 500 rows and 10 columns:
https://codesandbox.io/s/codesandbox-forked-bf2lw?file=/src/index.js