-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
[data grid] Handle 1m records #240
Comments
I'm currently testing DataGrid component and huge data sets (without pagination) are exacly the case I'm interested in. Or alternatively: Thanks. |
@mak-elena We definitely plan to introduce lazy loading for the rows. Right now the only alternative I'm aware of is to set |
Done in https://material-ui.com/components/data-grid/rendering/#virtualization
|
@mak-elena You can track and upvote #404. |
I have been wondering about this aspect. I believe the limitation for displaying, say 1m records is the number of pixels the browser accepts. This is discussed in bvaughn/react-virtualized#396 and WICG/display-locking#49.
How about we automatically trigger the pagination if a user exceeds this limit? It would also be great to document it.
Another thought, in such a case, the server might not even know how many rows they are. With PostgreSQL a simple count(*) on a table with many rows can be too time-consuming to be used in production. We would need to handle this case, the case where the total number of rows is unknown.
Proof: https://codesandbox.io/s/beautiful-silence-1yifo?file=/src/App.js
We document the limitation at: https://material-ui.com/components/data-grid/virtualization/.
Benchmark
The text was updated successfully, but these errors were encountered: