Sarveshgithub / sfdc-lwc-lightning-datatable

Salesforce Lighting Data table
MIT License
78 stars 28 forks source link

[ Enhancement ] - Improve performance and load test #209

Closed Sarveshgithub closed 1 year ago

Sarveshgithub commented 1 year ago
  1. Optimized LWC
  2. Optimized Apex
  3. Change the pattern for data fetching?
mickaelgudin commented 1 year ago

@Sarveshgithub Lazy load is the way to go just like in standard list views.

Conditions

Lazy loading & Pagination

Lazy loading should be an option (checked by default)

Sarveshgithub commented 1 year ago

@Sarveshgithub Lazy load is the way to go just like in standard list views.

Conditions

Lazy loading & Pagination

  • if the limit clause is not specfied OR pagination is not enabled then use lazy load (for each load we retrieve 50 rows : based on standard list view behaviour)
  • else load data with the specified limit

Lazy loading should be an option (checked by default)

  • if the new prop "disable lazy loading" is checked then fetch data at once (for uses cases where we want to show all records and the number of records is higher than 50)

yhea Lazy loading is one of good option

Sarveshgithub commented 1 year ago

improved some Apex performance and optimized code