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.

[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

  1. Go to codesandbox I’ve created
  2. Try to select or unselect “Select all” checkbox (table header)

Please create a reduced test case in CodeSandbox

https://codesandbox.io/embed/codesandbox-1lumy

Issue Analytics

  • State:open
  • Created 4 years ago
  • Reactions:3
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
tymericacommented, Jun 22, 2021

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

0reactions
tay1orjonescommented, Oct 31, 2022
Read more comments on GitHub >

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

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