[RFC] StaticTable for fast perf & virtual scroll support #41500
Replies: 8 comments 1 reply
-
需要有个表格对 StaticTable 和 Table 进行对比,说清楚 pros and cons |
Beta Was this translation helpful? Give feedback.
-
@zombieJ Cant we do anything about the Table component or must we opt into the Static Table when we need performance? Will we lose some Table features if we use Static table? thanks |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
what if you virtual scroll and each scroll is 200+ record, isnt that gonna still be the same issue with performance? |
Beta Was this translation helpful? Give feedback.
-
Is this RFC going to be the resolution for slow performance of row selection of large dataset? Whats gonna be left for the main Table component |
Beta Was this translation helpful? Give feedback.
-
So does it require loading all the data at a time as in the official doc? https://ant.design/components/table#components-table-demo-virtual-list It's not practical and you'd better add some features to convert the pagination table into infinite scroll easily. I was going to use this virtual table, but I found it's not practical eventually unless it has features to adapt to the pagination tables. Most of the APIs are built that way, page-wise data. |
Beta Was this translation helpful? Give feedback.
-
📋 RFC
Summary
Table provide
Table.StaticTable
for no additional render & default virtual scroll support.Basic example
Motivation
ref #20339
Table requires large data usage in some case. It's hard for developer to optimize since cell need full render. It can be use
shouldCellUpdate
for cell memo but can not avoid first time full render.Detailed
Follow all the props current have but require
width
for every column. Using virtual grid and fixed ability mixing for fixed column support.components.body
to support thiscolumn.render
dataSource
&column
not changedcolumn.width
is must haveDrawbacks
Not support auto width
Adoption strategy
Extends
rc-table
to provide Static ability.Beta Was this translation helpful? Give feedback.
All reactions