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

Datatable: Datatable selection is lag and slow with large dataset #4020

Closed
hurahurat opened this issue Jun 3, 2023 · 11 comments
Closed

Datatable: Datatable selection is lag and slow with large dataset #4020

hurahurat opened this issue Jun 3, 2023 · 11 comments

Comments

@hurahurat
Copy link

Describe the bug

Datatable is so slow when there are large number of dataset and large number of columns.
When I click select all checkbox it show a lag before all rows is selected and even select a single row could show me a lag.

Reproducer

https://codesandbox.io/s/primevue-demo-forked-lgz1dg

PrimeVue version

3.29.2

Vue version

3.x

Language

TypeScript

Build / Runtime

Vue CLI App

Browser(s)

No response

Steps to reproduce the behavior

No response

Expected behavior

The checkbox should be selected without any lag for large datasets also.

@hurahurat hurahurat added the Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible label Jun 3, 2023
@NeluQi
Copy link

NeluQi commented Jun 10, 2023

+1

@hurahurat
Copy link
Author

After forked and made some changes I have successful reduce the lag time less than 1s(~700ms)

@NeluQi
Copy link

NeluQi commented Jun 10, 2023

After forked and made some changes I have successful reduce the lag time less than 1s(~700ms)

Send a PR, I want to see it in the official version

@galilmori
Copy link

galilmori commented Jun 28, 2023

This is a terrible bug in my case i have a lot of data and it goes crashes my application wirth a blank page

Update:I have done a workaround to make my app work again. I have removed the 2 way binding on the "selection" field and used @row-select @row-unselect @row-select-all @row-unselect-all with custom callbacks to manually do selection and it has fixed my crashing app.

@martinszeltins
Copy link

+1

2 similar comments
@NxMgh
Copy link

NxMgh commented Jul 22, 2023

+1

@dipbhi
Copy link

dipbhi commented Jul 26, 2023

+1

@omzy
Copy link

omzy commented Sep 21, 2023

Any update on this? Or is anyone able to share a workaround?

@tugcekucukoglu tugcekucukoglu added Type: Enhancement Issue contains an enhancement related to a specific component. Additional functionality has been add and removed Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible labels Nov 2, 2023
@thevalo
Copy link

thevalo commented Nov 9, 2023

I have the same problem, but instead of a checkbox, the table really lags (and pages becomes sometimes unresponsive) when searching using global filters. Following.

@ibrdavid
Copy link

+1

@mertsincan
Copy link
Member

Hi,

Please see; https://dev.to/mertsincan/handling-big-data-on-datatable-with-checkbox-selection-multiselect-4hgc
I tried to explain how you can overcome these problems.

Best Regards,

@mertsincan mertsincan removed the Type: Enhancement Issue contains an enhancement related to a specific component. Additional functionality has been add label Dec 18, 2023
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

No branches or pull requests